library upgrade
This commit is contained in:
		| @@ -24,11 +24,7 @@ | |||||||
| 			<attribute name="gradle_used_by_scope" value="test"/> | 			<attribute name="gradle_used_by_scope" value="test"/> | ||||||
| 		</attributes> | 		</attributes> | ||||||
| 	</classpathentry> | 	</classpathentry> | ||||||
| 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"> | 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/> | ||||||
| 		<attributes> |  | ||||||
| 			<attribute name="module" value="true"/> |  | ||||||
| 		</attributes> |  | ||||||
| 	</classpathentry> |  | ||||||
| 	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | 	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | ||||||
| 	<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"> | 	<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"> | ||||||
| 		<attributes> | 		<attributes> | ||||||
|   | |||||||
| @@ -1,11 +1,11 @@ | |||||||
| eclipse.preferences.version=1 | eclipse.preferences.version=1 | ||||||
| org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||||||
| org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||||||
| org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | ||||||
| org.eclipse.jdt.core.compiler.compliance=11 | org.eclipse.jdt.core.compiler.compliance=1.8 | ||||||
| org.eclipse.jdt.core.compiler.debug.lineNumber=generate | org.eclipse.jdt.core.compiler.debug.lineNumber=generate | ||||||
| org.eclipse.jdt.core.compiler.debug.localVariable=generate | org.eclipse.jdt.core.compiler.debug.localVariable=generate | ||||||
| org.eclipse.jdt.core.compiler.debug.sourceFile=generate | org.eclipse.jdt.core.compiler.debug.sourceFile=generate | ||||||
| org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||||||
| org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||||||
| org.eclipse.jdt.core.compiler.source=11 | org.eclipse.jdt.core.compiler.source=1.8 | ||||||
|   | |||||||
| @@ -3,5 +3,5 @@ | |||||||
| 	<fixed facet="jst.java"/> | 	<fixed facet="jst.java"/> | ||||||
| 	<fixed facet="jst.web"/> | 	<fixed facet="jst.web"/> | ||||||
| 	<installed facet="jst.web" version="2.4"/> | 	<installed facet="jst.web" version="2.4"/> | ||||||
| 	<installed facet="jst.java" version="11"/> | 	<installed facet="jst.java" version="1.8"/> | ||||||
| </faceted-project> | </faceted-project> | ||||||
|   | |||||||
							
								
								
									
										39
									
								
								build.gradle
									
									
									
									
									
								
							
							
						
						
									
										39
									
								
								build.gradle
									
									
									
									
									
								
							| @@ -8,10 +8,10 @@ buildscript { | |||||||
|     } |     } | ||||||
|     dependencies { |     dependencies { | ||||||
|         classpath 'com.google.code.gson:gson:2.8.5' |         classpath 'com.google.code.gson:gson:2.8.5' | ||||||
|         classpath 'org.jooq:jooq-codegen:3.11.9' |         classpath 'org.jooq:jooq-codegen:3.12.1' | ||||||
|         classpath 'org.postgresql:postgresql:42.2.5' |         classpath 'org.postgresql:postgresql:42.2.6' | ||||||
|         classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:latest.release' |         classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:latest.release' | ||||||
|         classpath 'nu.studer:gradle-jooq-plugin:3.0.2' |         classpath 'nu.studer:gradle-jooq-plugin:3.0.3' | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -22,7 +22,7 @@ apply plugin: 'eclipse' | |||||||
| apply plugin: 'nu.studer.jooq' | apply plugin: 'nu.studer.jooq' | ||||||
|  |  | ||||||
| group = 'jottyfan' | group = 'jottyfan' | ||||||
| version = '1.0.4' | version = '1.0.5' | ||||||
|  |  | ||||||
| description = """timetrack""" | description = """timetrack""" | ||||||
|  |  | ||||||
| @@ -36,36 +36,37 @@ tasks.withType(JavaCompile) { | |||||||
| repositories { | repositories { | ||||||
| 	mavenLocal() | 	mavenLocal() | ||||||
| 	mavenCentral() | 	mavenCentral() | ||||||
|     maven { url "http://vps207887.ovh.net/mvnrepo" } |     maven { url "https://www.jottyfan.de/mvnrepo" } | ||||||
|     maven { url "https://repo.maven.apache.org/maven2" } |     maven { url "https://repo.maven.apache.org/maven2" } | ||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
| 		compile 'org.jboss.weld.servlet:weld-servlet:2.4.8.Final' | 		compile 'org.jboss.weld.servlet:weld-servlet:2.4.8.Final' | ||||||
|  |  | ||||||
|     compile 'org.apache.myfaces.core:myfaces-api:2.3.3' |     compile 'org.apache.myfaces.core:myfaces-api:2.3.4' | ||||||
|     compile 'org.apache.myfaces.core:myfaces-impl:2.3.3' |     compile 'org.apache.myfaces.core:myfaces-impl:2.3.4' | ||||||
|     compile 'net.bootsfaces:bootsfaces:1.4.1' |     compile 'net.bootsfaces:bootsfaces:1.4.2' | ||||||
|     compile 'de.jooqFaces:jooqFaces:0.1.3-SNAPSHOT' |     compile 'de.jooqFaces:jooqFaces:0.4.6' | ||||||
|     compile 'org.postgresql:postgresql:42.2.5' |     compile 'org.postgresql:postgresql:42.2.6' | ||||||
|     compile 'org.jooq:jooq:3.11.9' |     compile 'org.jooq:jooq:3.12.1' | ||||||
|     compile 'org.jooq:jooq-codegen:3.11.9' |     compile 'org.jooq:jooq-codegen:3.12.1' | ||||||
|     compile 'com.google.code.gson:gson:2.8.5' |     compile 'com.google.code.gson:gson:2.8.5' | ||||||
| 		compile 'org.jasypt:jasypt:1.9.2' | 		compile 'org.jasypt:jasypt:1.9.3' | ||||||
|     compile 'javax.servlet:javax.servlet-api:4.0.1' |     compile 'javax.servlet:javax.servlet-api:4.0.1' | ||||||
|     compile 'org.apache.logging.log4j:log4j-core:2.11.1' |     compile 'org.apache.logging.log4j:log4j-core:2.12.1' | ||||||
|     compile 'org.apache.logging.log4j:log4j-api:2.11.1' |     compile 'org.apache.logging.log4j:log4j-api:2.12.1' | ||||||
|  |  | ||||||
|     testCompile 'junit:junit:4.12' |     testCompile 'org.junit.jupiter:junit-jupiter-api:5.5.2' | ||||||
|  |     testCompile 'org.junit.jupiter:junit-jupiter-engine:5.5.2' | ||||||
|  |  | ||||||
|     runtime 'org.postgresql:postgresql:42.2.5' |     runtime 'org.postgresql:postgresql:42.2.6' | ||||||
|      |      | ||||||
|     jooqRuntime 'org.postgresql:postgresql:42.2.5' |     jooqRuntime 'org.postgresql:postgresql:42.2.6' | ||||||
| } | } | ||||||
|  |  | ||||||
| jooq { | jooq { | ||||||
| 	edition = 'OSS' | 	edition = 'OSS' | ||||||
| 	version = '3.11.9' | 	version = '3.12.1' | ||||||
| 	timetrack (sourceSets.main) { | 	timetrack (sourceSets.main) { | ||||||
| 		jdbc { | 		jdbc { | ||||||
| 			driver = 'org.postgresql.Driver' | 			driver = 'org.postgresql.Driver' | ||||||
|   | |||||||
| @@ -4,6 +4,11 @@ | |||||||
| package de.jottyfan.timetrack.db; | package de.jottyfan.timetrack.db; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.contact.Contact; | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.note.Note; | ||||||
|  | import de.jottyfan.timetrack.db.profile.Profile; | ||||||
|  |  | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -13,11 +18,6 @@ import javax.annotation.Generated; | |||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.impl.CatalogImpl; | import org.jooq.impl.CatalogImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.contact.Contact; |  | ||||||
| import de.jottyfan.timetrack.db.done.Done; |  | ||||||
| import de.jottyfan.timetrack.db.note.Note; |  | ||||||
| import de.jottyfan.timetrack.db.profile.Profile; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -25,14 +25,14 @@ import de.jottyfan.timetrack.db.profile.Profile; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class DefaultCatalog extends CatalogImpl { | public class DefaultCatalog extends CatalogImpl { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 2027686892; |     private static final long serialVersionUID = 1875812553; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code></code> |      * The reference instance of <code></code> | ||||||
|   | |||||||
| @@ -4,6 +4,9 @@ | |||||||
| package de.jottyfan.timetrack.db.contact; | package de.jottyfan.timetrack.db.contact; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.DefaultCatalog; | ||||||
|  | import de.jottyfan.timetrack.db.contact.tables.TContact; | ||||||
|  |  | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -14,9 +17,6 @@ import org.jooq.Catalog; | |||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.impl.SchemaImpl; | import org.jooq.impl.SchemaImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.DefaultCatalog; |  | ||||||
| import de.jottyfan.timetrack.db.contact.tables.TContact; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -24,14 +24,14 @@ import de.jottyfan.timetrack.db.contact.tables.TContact; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class Contact extends SchemaImpl { | public class Contact extends SchemaImpl { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -206762222; |     private static final long serialVersionUID = 2007599284; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>contact</code> |      * The reference instance of <code>contact</code> | ||||||
| @@ -51,9 +51,6 @@ public class Contact extends SchemaImpl { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Catalog getCatalog() { |     public Catalog getCatalog() { | ||||||
|         return DefaultCatalog.DEFAULT_CATALOG; |         return DefaultCatalog.DEFAULT_CATALOG; | ||||||
|   | |||||||
| @@ -4,14 +4,14 @@ | |||||||
| package de.jottyfan.timetrack.db.contact; | package de.jottyfan.timetrack.db.contact; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.contact.tables.TContact; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.OrderField; | import org.jooq.OrderField; | ||||||
| import org.jooq.impl.Internal; | import org.jooq.impl.Internal; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.contact.tables.TContact; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * A class modelling indexes of tables of the <code>contact</code> schema. |  * A class modelling indexes of tables of the <code>contact</code> schema. | ||||||
| @@ -19,7 +19,7 @@ import de.jottyfan.timetrack.db.contact.tables.TContact; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -4,10 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.contact; | package de.jottyfan.timetrack.db.contact; | ||||||
|  |  | ||||||
|  |  | ||||||
| import javax.annotation.Generated; |  | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.contact.tables.TContact; | import de.jottyfan.timetrack.db.contact.tables.TContact; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Convenience access to all tables in contact |  * Convenience access to all tables in contact | ||||||
| @@ -15,7 +15,7 @@ import de.jottyfan.timetrack.db.contact.tables.TContact; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @@ -25,5 +25,5 @@ public class Tables { | |||||||
|     /** |     /** | ||||||
|      * The table <code>contact.t_contact</code>. |      * The table <code>contact.t_contact</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TContact T_CONTACT = de.jottyfan.timetrack.db.contact.tables.TContact.T_CONTACT; |     public static final TContact T_CONTACT = TContact.T_CONTACT; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,14 +4,14 @@ | |||||||
| package de.jottyfan.timetrack.db.contact.enums; | package de.jottyfan.timetrack.db.contact.enums; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.contact.Contact; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Catalog; | import org.jooq.Catalog; | ||||||
| import org.jooq.EnumType; | import org.jooq.EnumType; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.contact.Contact; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -19,7 +19,7 @@ import de.jottyfan.timetrack.db.contact.Contact; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @@ -42,33 +42,21 @@ public enum EnumContacttype implements EnumType { | |||||||
|         this.literal = literal; |         this.literal = literal; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Catalog getCatalog() { |     public Catalog getCatalog() { | ||||||
|         return getSchema() == null ? null : getSchema().getCatalog(); |         return getSchema() == null ? null : getSchema().getCatalog(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Contact.CONTACT; |         return Contact.CONTACT; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String getName() { |     public String getName() { | ||||||
|         return "enum_contacttype"; |         return "enum_contacttype"; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String getLiteral() { |     public String getLiteral() { | ||||||
|         return literal; |         return literal; | ||||||
|   | |||||||
| @@ -4,6 +4,11 @@ | |||||||
| package de.jottyfan.timetrack.db.contact.tables; | package de.jottyfan.timetrack.db.contact.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.contact.Contact; | ||||||
|  | import de.jottyfan.timetrack.db.contact.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.contact.enums.EnumContacttype; | ||||||
|  | import de.jottyfan.timetrack.db.contact.tables.records.TContactRecord; | ||||||
|  |  | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
|  |  | ||||||
| @@ -14,17 +19,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row5; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.contact.Contact; |  | ||||||
| import de.jottyfan.timetrack.db.contact.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.contact.enums.EnumContacttype; |  | ||||||
| import de.jottyfan.timetrack.db.contact.tables.records.TContactRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -32,14 +33,14 @@ import de.jottyfan.timetrack.db.contact.tables.records.TContactRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TContact extends TableImpl<TContactRecord> { | public class TContact extends TableImpl<TContactRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1349495675; |     private static final long serialVersionUID = -1913430710; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>contact.t_contact</code> |      * The reference instance of <code>contact.t_contact</code> | ||||||
| @@ -57,27 +58,27 @@ public class TContact extends TableImpl<TContactRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>contact.t_contact.pk</code>. |      * The column <code>contact.t_contact.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TContactRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TContactRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>contact.t_contact.forename</code>. |      * The column <code>contact.t_contact.forename</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TContactRecord, String> FORENAME = createField("forename", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TContactRecord, String> FORENAME = createField(DSL.name("forename"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>contact.t_contact.surname</code>. |      * The column <code>contact.t_contact.surname</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TContactRecord, String> SURNAME = createField("surname", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TContactRecord, String> SURNAME = createField(DSL.name("surname"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>contact.t_contact.contact</code>. |      * The column <code>contact.t_contact.contact</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TContactRecord, String> CONTACT = createField("contact", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TContactRecord, String> CONTACT = createField(DSL.name("contact"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>contact.t_contact.type</code>. |      * The column <code>contact.t_contact.type</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TContactRecord, EnumContacttype> TYPE = createField("type", org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(de.jottyfan.timetrack.db.contact.enums.EnumContacttype.class), this, ""); |     public final TableField<TContactRecord, EnumContacttype> TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).asEnumDataType(de.jottyfan.timetrack.db.contact.enums.EnumContacttype.class), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>contact.t_contact</code> table reference |      * Create a <code>contact.t_contact</code> table reference | ||||||
| @@ -112,33 +113,21 @@ public class TContact extends TableImpl<TContactRecord> { | |||||||
|         super(child, key, T_CONTACT); |         super(child, key, T_CONTACT); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Contact.CONTACT; |         return Contact.CONTACT; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_CONTACT_PKEY); |         return Arrays.<Index>asList(Indexes.T_CONTACT_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TContact as(String alias) { |     public TContact as(String alias) { | ||||||
|         return new TContact(DSL.name(alias), this); |         return new TContact(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TContact as(Name alias) { |     public TContact as(Name alias) { | ||||||
|         return new TContact(alias, this); |         return new TContact(alias, this); | ||||||
| @@ -159,4 +148,13 @@ public class TContact extends TableImpl<TContactRecord> { | |||||||
|     public TContact rename(Name name) { |     public TContact rename(Name name) { | ||||||
|         return new TContact(name, null); |         return new TContact(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row5 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row5<Integer, String, String, String, EnumContacttype> fieldsRow() { | ||||||
|  |         return (Row5) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,9 @@ | |||||||
| package de.jottyfan.timetrack.db.contact.tables.records; | package de.jottyfan.timetrack.db.contact.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.contact.enums.EnumContacttype; | ||||||
|  | import de.jottyfan.timetrack.db.contact.tables.TContact; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Field; | import org.jooq.Field; | ||||||
| @@ -11,9 +14,6 @@ import org.jooq.Record5; | |||||||
| import org.jooq.Row5; | import org.jooq.Row5; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.contact.enums.EnumContacttype; |  | ||||||
| import de.jottyfan.timetrack.db.contact.tables.TContact; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -21,14 +21,14 @@ import de.jottyfan.timetrack.db.contact.tables.TContact; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TContactRecord extends TableRecordImpl<TContactRecord> implements Record5<Integer, String, String, String, EnumContacttype> { | public class TContactRecord extends TableRecordImpl<TContactRecord> implements Record5<Integer, String, String, String, EnumContacttype> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 815817311; |     private static final long serialVersionUID = 875007667; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>contact.t_contact.pk</code>. |      * Setter for <code>contact.t_contact.pk</code>. | ||||||
| @@ -104,190 +104,121 @@ public class TContactRecord extends TableRecordImpl<TContactRecord> implements R | |||||||
|     // Record5 type implementation |     // Record5 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row5<Integer, String, String, String, EnumContacttype> fieldsRow() { |     public Row5<Integer, String, String, String, EnumContacttype> fieldsRow() { | ||||||
|         return (Row5) super.fieldsRow(); |         return (Row5) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row5<Integer, String, String, String, EnumContacttype> valuesRow() { |     public Row5<Integer, String, String, String, EnumContacttype> valuesRow() { | ||||||
|         return (Row5) super.valuesRow(); |         return (Row5) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field1() { |     public Field<Integer> field1() { | ||||||
|         return TContact.T_CONTACT.PK; |         return TContact.T_CONTACT.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field2() { |     public Field<String> field2() { | ||||||
|         return TContact.T_CONTACT.FORENAME; |         return TContact.T_CONTACT.FORENAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return TContact.T_CONTACT.SURNAME; |         return TContact.T_CONTACT.SURNAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field4() { |     public Field<String> field4() { | ||||||
|         return TContact.T_CONTACT.CONTACT; |         return TContact.T_CONTACT.CONTACT; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<EnumContacttype> field5() { |     public Field<EnumContacttype> field5() { | ||||||
|         return TContact.T_CONTACT.TYPE; |         return TContact.T_CONTACT.TYPE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component1() { |     public Integer component1() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component2() { |     public String component2() { | ||||||
|         return getForename(); |         return getForename(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getSurname(); |         return getSurname(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component4() { |     public String component4() { | ||||||
|         return getContact(); |         return getContact(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public EnumContacttype component5() { |     public EnumContacttype component5() { | ||||||
|         return getType(); |         return getType(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value1() { |     public Integer value1() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value2() { |     public String value2() { | ||||||
|         return getForename(); |         return getForename(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getSurname(); |         return getSurname(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value4() { |     public String value4() { | ||||||
|         return getContact(); |         return getContact(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public EnumContacttype value5() { |     public EnumContacttype value5() { | ||||||
|         return getType(); |         return getType(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TContactRecord value1(Integer value) { |     public TContactRecord value1(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TContactRecord value2(String value) { |     public TContactRecord value2(String value) { | ||||||
|         setForename(value); |         setForename(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TContactRecord value3(String value) { |     public TContactRecord value3(String value) { | ||||||
|         setSurname(value); |         setSurname(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TContactRecord value4(String value) { |     public TContactRecord value4(String value) { | ||||||
|         setContact(value); |         setContact(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TContactRecord value5(EnumContacttype value) { |     public TContactRecord value5(EnumContacttype value) { | ||||||
|         setType(value); |         setType(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TContactRecord values(Integer value1, String value2, String value3, String value4, EnumContacttype value5) { |     public TContactRecord values(Integer value1, String value2, String value3, String value4, EnumContacttype value5) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,6 +4,21 @@ | |||||||
| package de.jottyfan.timetrack.db.done; | package de.jottyfan.timetrack.db.done; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.DefaultCatalog; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TDone; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TJob; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TModule; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TProject; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaily; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaylimits; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaysummary; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDone; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDuration; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VHamster; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VHamstersummary; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VTasklist; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VTotalofday; | ||||||
|  |  | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -14,14 +29,6 @@ import org.jooq.Catalog; | |||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.impl.SchemaImpl; | import org.jooq.impl.SchemaImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.DefaultCatalog; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TDone; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TJob; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TModule; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TProject; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.VTasklist; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.VTotalofday; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -29,14 +36,14 @@ import de.jottyfan.timetrack.db.done.tables.VTotalofday; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class Done extends SchemaImpl { | public class Done extends SchemaImpl { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1049524459; |     private static final long serialVersionUID = -1471367006; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>done</code> |      * The reference instance of <code>done</code> | ||||||
| @@ -63,6 +70,41 @@ public class Done extends SchemaImpl { | |||||||
|      */ |      */ | ||||||
|     public final TProject T_PROJECT = de.jottyfan.timetrack.db.done.tables.TProject.T_PROJECT; |     public final TProject T_PROJECT = de.jottyfan.timetrack.db.done.tables.TProject.T_PROJECT; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_daily</code>. | ||||||
|  |      */ | ||||||
|  |     public final VDaily V_DAILY = de.jottyfan.timetrack.db.done.tables.VDaily.V_DAILY; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_daylimits</code>. | ||||||
|  |      */ | ||||||
|  |     public final VDaylimits V_DAYLIMITS = de.jottyfan.timetrack.db.done.tables.VDaylimits.V_DAYLIMITS; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_daysummary</code>. | ||||||
|  |      */ | ||||||
|  |     public final VDaysummary V_DAYSUMMARY = de.jottyfan.timetrack.db.done.tables.VDaysummary.V_DAYSUMMARY; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_done</code>. | ||||||
|  |      */ | ||||||
|  |     public final VDone V_DONE = de.jottyfan.timetrack.db.done.tables.VDone.V_DONE; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_duration</code>. | ||||||
|  |      */ | ||||||
|  |     public final VDuration V_DURATION = de.jottyfan.timetrack.db.done.tables.VDuration.V_DURATION; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_hamster</code>. | ||||||
|  |      */ | ||||||
|  |     public final VHamster V_HAMSTER = de.jottyfan.timetrack.db.done.tables.VHamster.V_HAMSTER; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_hamstersummary</code>. | ||||||
|  |      */ | ||||||
|  |     public final VHamstersummary V_HAMSTERSUMMARY = de.jottyfan.timetrack.db.done.tables.VHamstersummary.V_HAMSTERSUMMARY; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>done.v_tasklist</code>. |      * The table <code>done.v_tasklist</code>. | ||||||
|      */ |      */ | ||||||
| @@ -81,9 +123,6 @@ public class Done extends SchemaImpl { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Catalog getCatalog() { |     public Catalog getCatalog() { | ||||||
|         return DefaultCatalog.DEFAULT_CATALOG; |         return DefaultCatalog.DEFAULT_CATALOG; | ||||||
| @@ -102,6 +141,13 @@ public class Done extends SchemaImpl { | |||||||
|             TJob.T_JOB, |             TJob.T_JOB, | ||||||
|             TModule.T_MODULE, |             TModule.T_MODULE, | ||||||
|             TProject.T_PROJECT, |             TProject.T_PROJECT, | ||||||
|  |             VDaily.V_DAILY, | ||||||
|  |             VDaylimits.V_DAYLIMITS, | ||||||
|  |             VDaysummary.V_DAYSUMMARY, | ||||||
|  |             VDone.V_DONE, | ||||||
|  |             VDuration.V_DURATION, | ||||||
|  |             VHamster.V_HAMSTER, | ||||||
|  |             VHamstersummary.V_HAMSTERSUMMARY, | ||||||
|             VTasklist.V_TASKLIST, |             VTasklist.V_TASKLIST, | ||||||
|             VTotalofday.V_TOTALOFDAY); |             VTotalofday.V_TOTALOFDAY); | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -4,17 +4,17 @@ | |||||||
| package de.jottyfan.timetrack.db.done; | package de.jottyfan.timetrack.db.done; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TDone; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TJob; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TModule; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TProject; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.OrderField; | import org.jooq.OrderField; | ||||||
| import org.jooq.impl.Internal; | import org.jooq.impl.Internal; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TDone; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TJob; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TModule; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TProject; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * A class modelling indexes of tables of the <code>done</code> schema. |  * A class modelling indexes of tables of the <code>done</code> schema. | ||||||
| @@ -22,7 +22,7 @@ import de.jottyfan.timetrack.db.done.tables.TProject; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -4,15 +4,22 @@ | |||||||
| package de.jottyfan.timetrack.db.done; | package de.jottyfan.timetrack.db.done; | ||||||
|  |  | ||||||
|  |  | ||||||
| import javax.annotation.Generated; |  | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TDone; | import de.jottyfan.timetrack.db.done.tables.TDone; | ||||||
| import de.jottyfan.timetrack.db.done.tables.TJob; | import de.jottyfan.timetrack.db.done.tables.TJob; | ||||||
| import de.jottyfan.timetrack.db.done.tables.TModule; | import de.jottyfan.timetrack.db.done.tables.TModule; | ||||||
| import de.jottyfan.timetrack.db.done.tables.TProject; | import de.jottyfan.timetrack.db.done.tables.TProject; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaily; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaylimits; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaysummary; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDone; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDuration; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VHamster; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VHamstersummary; | ||||||
| import de.jottyfan.timetrack.db.done.tables.VTasklist; | import de.jottyfan.timetrack.db.done.tables.VTasklist; | ||||||
| import de.jottyfan.timetrack.db.done.tables.VTotalofday; | import de.jottyfan.timetrack.db.done.tables.VTotalofday; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Convenience access to all tables in done |  * Convenience access to all tables in done | ||||||
| @@ -20,7 +27,7 @@ import de.jottyfan.timetrack.db.done.tables.VTotalofday; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @@ -30,30 +37,65 @@ public class Tables { | |||||||
|     /** |     /** | ||||||
|      * The table <code>done.t_done</code>. |      * The table <code>done.t_done</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TDone T_DONE = de.jottyfan.timetrack.db.done.tables.TDone.T_DONE; |     public static final TDone T_DONE = TDone.T_DONE; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>done.t_job</code>. |      * The table <code>done.t_job</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TJob T_JOB = de.jottyfan.timetrack.db.done.tables.TJob.T_JOB; |     public static final TJob T_JOB = TJob.T_JOB; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>done.t_module</code>. |      * The table <code>done.t_module</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TModule T_MODULE = de.jottyfan.timetrack.db.done.tables.TModule.T_MODULE; |     public static final TModule T_MODULE = TModule.T_MODULE; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>done.t_project</code>. |      * The table <code>done.t_project</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TProject T_PROJECT = de.jottyfan.timetrack.db.done.tables.TProject.T_PROJECT; |     public static final TProject T_PROJECT = TProject.T_PROJECT; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_daily</code>. | ||||||
|  |      */ | ||||||
|  |     public static final VDaily V_DAILY = VDaily.V_DAILY; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_daylimits</code>. | ||||||
|  |      */ | ||||||
|  |     public static final VDaylimits V_DAYLIMITS = VDaylimits.V_DAYLIMITS; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_daysummary</code>. | ||||||
|  |      */ | ||||||
|  |     public static final VDaysummary V_DAYSUMMARY = VDaysummary.V_DAYSUMMARY; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_done</code>. | ||||||
|  |      */ | ||||||
|  |     public static final VDone V_DONE = VDone.V_DONE; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_duration</code>. | ||||||
|  |      */ | ||||||
|  |     public static final VDuration V_DURATION = VDuration.V_DURATION; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_hamster</code>. | ||||||
|  |      */ | ||||||
|  |     public static final VHamster V_HAMSTER = VHamster.V_HAMSTER; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The table <code>done.v_hamstersummary</code>. | ||||||
|  |      */ | ||||||
|  |     public static final VHamstersummary V_HAMSTERSUMMARY = VHamstersummary.V_HAMSTERSUMMARY; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>done.v_tasklist</code>. |      * The table <code>done.v_tasklist</code>. | ||||||
|      */ |      */ | ||||||
|     public static final VTasklist V_TASKLIST = de.jottyfan.timetrack.db.done.tables.VTasklist.V_TASKLIST; |     public static final VTasklist V_TASKLIST = VTasklist.V_TASKLIST; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>done.v_totalofday</code>. |      * The table <code>done.v_totalofday</code>. | ||||||
|      */ |      */ | ||||||
|     public static final VTotalofday V_TOTALOFDAY = de.jottyfan.timetrack.db.done.tables.VTotalofday.V_TOTALOFDAY; |     public static final VTotalofday V_TOTALOFDAY = VTotalofday.V_TOTALOFDAY; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables; | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.TDoneRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -15,16 +19,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row8; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.Done; |  | ||||||
| import de.jottyfan.timetrack.db.done.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TDoneRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -32,14 +33,14 @@ import de.jottyfan.timetrack.db.done.tables.records.TDoneRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TDone extends TableImpl<TDoneRecord> { | public class TDone extends TableImpl<TDoneRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 47529789; |     private static final long serialVersionUID = -2079648247; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>done.t_done</code> |      * The reference instance of <code>done.t_done</code> | ||||||
| @@ -57,42 +58,42 @@ public class TDone extends TableImpl<TDoneRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_done.lastchange</code>. |      * The column <code>done.t_done.lastchange</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TDoneRecord, Timestamp> LASTCHANGE = createField("lastchange", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); |     public final TableField<TDoneRecord, Timestamp> LASTCHANGE = createField(DSL.name("lastchange"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_done.pk</code>. |      * The column <code>done.t_done.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TDoneRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TDoneRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_done.time_from</code>. |      * The column <code>done.t_done.time_from</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TDoneRecord, Timestamp> TIME_FROM = createField("time_from", org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); |     public final TableField<TDoneRecord, Timestamp> TIME_FROM = createField(DSL.name("time_from"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_done.time_until</code>. |      * The column <code>done.t_done.time_until</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TDoneRecord, Timestamp> TIME_UNTIL = createField("time_until", org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); |     public final TableField<TDoneRecord, Timestamp> TIME_UNTIL = createField(DSL.name("time_until"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_done.fk_project</code>. |      * The column <code>done.t_done.fk_project</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TDoneRecord, Integer> FK_PROJECT = createField("fk_project", org.jooq.impl.SQLDataType.INTEGER, this, ""); |     public final TableField<TDoneRecord, Integer> FK_PROJECT = createField(DSL.name("fk_project"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_done.fk_module</code>. |      * The column <code>done.t_done.fk_module</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TDoneRecord, Integer> FK_MODULE = createField("fk_module", org.jooq.impl.SQLDataType.INTEGER, this, ""); |     public final TableField<TDoneRecord, Integer> FK_MODULE = createField(DSL.name("fk_module"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_done.fk_job</code>. |      * The column <code>done.t_done.fk_job</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TDoneRecord, Integer> FK_JOB = createField("fk_job", org.jooq.impl.SQLDataType.INTEGER, this, ""); |     public final TableField<TDoneRecord, Integer> FK_JOB = createField(DSL.name("fk_job"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_done.fk_login</code>. |      * The column <code>done.t_done.fk_login</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TDoneRecord, Integer> FK_LOGIN = createField("fk_login", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TDoneRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>done.t_done</code> table reference |      * Create a <code>done.t_done</code> table reference | ||||||
| @@ -127,33 +128,21 @@ public class TDone extends TableImpl<TDoneRecord> { | |||||||
|         super(child, key, T_DONE); |         super(child, key, T_DONE); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Done.DONE; |         return Done.DONE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_DONE_PKEY); |         return Arrays.<Index>asList(Indexes.T_DONE_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDone as(String alias) { |     public TDone as(String alias) { | ||||||
|         return new TDone(DSL.name(alias), this); |         return new TDone(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDone as(Name alias) { |     public TDone as(Name alias) { | ||||||
|         return new TDone(alias, this); |         return new TDone(alias, this); | ||||||
| @@ -174,4 +163,13 @@ public class TDone extends TableImpl<TDoneRecord> { | |||||||
|     public TDone rename(Name name) { |     public TDone rename(Name name) { | ||||||
|         return new TDone(name, null); |         return new TDone(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row8 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row8<Timestamp, Integer, Timestamp, Timestamp, Integer, Integer, Integer, Integer> fieldsRow() { | ||||||
|  |         return (Row8) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables; | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.TJobRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -15,16 +19,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row3; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.Done; |  | ||||||
| import de.jottyfan.timetrack.db.done.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TJobRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -32,14 +33,14 @@ import de.jottyfan.timetrack.db.done.tables.records.TJobRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TJob extends TableImpl<TJobRecord> { | public class TJob extends TableImpl<TJobRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -1617909635; |     private static final long serialVersionUID = 300367621; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>done.t_job</code> |      * The reference instance of <code>done.t_job</code> | ||||||
| @@ -57,17 +58,17 @@ public class TJob extends TableImpl<TJobRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_job.lastchange</code>. |      * The column <code>done.t_job.lastchange</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TJobRecord, Timestamp> LASTCHANGE = createField("lastchange", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); |     public final TableField<TJobRecord, Timestamp> LASTCHANGE = createField(DSL.name("lastchange"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_job.pk</code>. |      * The column <code>done.t_job.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TJobRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TJobRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_job.name</code>. |      * The column <code>done.t_job.name</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TJobRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TJobRecord, String> NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>done.t_job</code> table reference |      * Create a <code>done.t_job</code> table reference | ||||||
| @@ -102,33 +103,21 @@ public class TJob extends TableImpl<TJobRecord> { | |||||||
|         super(child, key, T_JOB); |         super(child, key, T_JOB); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Done.DONE; |         return Done.DONE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_CATEGORY_NAME_KEY, Indexes.T_CATEGORY_PKEY); |         return Arrays.<Index>asList(Indexes.T_CATEGORY_NAME_KEY, Indexes.T_CATEGORY_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TJob as(String alias) { |     public TJob as(String alias) { | ||||||
|         return new TJob(DSL.name(alias), this); |         return new TJob(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TJob as(Name alias) { |     public TJob as(Name alias) { | ||||||
|         return new TJob(alias, this); |         return new TJob(alias, this); | ||||||
| @@ -149,4 +138,13 @@ public class TJob extends TableImpl<TJobRecord> { | |||||||
|     public TJob rename(Name name) { |     public TJob rename(Name name) { | ||||||
|         return new TJob(name, null); |         return new TJob(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row3 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row3<Timestamp, Integer, String> fieldsRow() { | ||||||
|  |         return (Row3) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables; | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -15,16 +19,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row3; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.Done; |  | ||||||
| import de.jottyfan.timetrack.db.done.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -32,14 +33,14 @@ import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TModule extends TableImpl<TModuleRecord> { | public class TModule extends TableImpl<TModuleRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -173305798; |     private static final long serialVersionUID = 1907331946; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>done.t_module</code> |      * The reference instance of <code>done.t_module</code> | ||||||
| @@ -57,17 +58,17 @@ public class TModule extends TableImpl<TModuleRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_module.lastchange</code>. |      * The column <code>done.t_module.lastchange</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TModuleRecord, Timestamp> LASTCHANGE = createField("lastchange", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); |     public final TableField<TModuleRecord, Timestamp> LASTCHANGE = createField(DSL.name("lastchange"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_module.pk</code>. |      * The column <code>done.t_module.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TModuleRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TModuleRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_module.name</code>. |      * The column <code>done.t_module.name</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TModuleRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TModuleRecord, String> NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>done.t_module</code> table reference |      * Create a <code>done.t_module</code> table reference | ||||||
| @@ -102,33 +103,21 @@ public class TModule extends TableImpl<TModuleRecord> { | |||||||
|         super(child, key, T_MODULE); |         super(child, key, T_MODULE); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Done.DONE; |         return Done.DONE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_JOB_NAME_KEY, Indexes.T_JOB_PKEY); |         return Arrays.<Index>asList(Indexes.T_JOB_NAME_KEY, Indexes.T_JOB_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TModule as(String alias) { |     public TModule as(String alias) { | ||||||
|         return new TModule(DSL.name(alias), this); |         return new TModule(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TModule as(Name alias) { |     public TModule as(Name alias) { | ||||||
|         return new TModule(alias, this); |         return new TModule(alias, this); | ||||||
| @@ -149,4 +138,13 @@ public class TModule extends TableImpl<TModuleRecord> { | |||||||
|     public TModule rename(Name name) { |     public TModule rename(Name name) { | ||||||
|         return new TModule(name, null); |         return new TModule(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row3 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row3<Timestamp, Integer, String> fieldsRow() { | ||||||
|  |         return (Row3) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables; | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.TProjectRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -15,16 +19,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row3; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.Done; |  | ||||||
| import de.jottyfan.timetrack.db.done.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TProjectRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -32,14 +33,14 @@ import de.jottyfan.timetrack.db.done.tables.records.TProjectRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TProject extends TableImpl<TProjectRecord> { | public class TProject extends TableImpl<TProjectRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -1855268291; |     private static final long serialVersionUID = -609416251; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>done.t_project</code> |      * The reference instance of <code>done.t_project</code> | ||||||
| @@ -57,17 +58,17 @@ public class TProject extends TableImpl<TProjectRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_project.lastchange</code>. |      * The column <code>done.t_project.lastchange</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TProjectRecord, Timestamp> LASTCHANGE = createField("lastchange", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); |     public final TableField<TProjectRecord, Timestamp> LASTCHANGE = createField(DSL.name("lastchange"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_project.pk</code>. |      * The column <code>done.t_project.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TProjectRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TProjectRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.t_project.name</code>. |      * The column <code>done.t_project.name</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TProjectRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TProjectRecord, String> NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>done.t_project</code> table reference |      * Create a <code>done.t_project</code> table reference | ||||||
| @@ -102,33 +103,21 @@ public class TProject extends TableImpl<TProjectRecord> { | |||||||
|         super(child, key, T_PROJECT); |         super(child, key, T_PROJECT); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Done.DONE; |         return Done.DONE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_PROJECT_NAME_KEY, Indexes.T_PROJECT_PKEY); |         return Arrays.<Index>asList(Indexes.T_PROJECT_NAME_KEY, Indexes.T_PROJECT_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TProject as(String alias) { |     public TProject as(String alias) { | ||||||
|         return new TProject(DSL.name(alias), this); |         return new TProject(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TProject as(Name alias) { |     public TProject as(Name alias) { | ||||||
|         return new TProject(alias, this); |         return new TProject(alias, this); | ||||||
| @@ -149,4 +138,13 @@ public class TProject extends TableImpl<TProjectRecord> { | |||||||
|     public TProject rename(Name name) { |     public TProject rename(Name name) { | ||||||
|         return new TProject(name, null); |         return new TProject(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row3 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row3<Timestamp, Integer, String> fieldsRow() { | ||||||
|  |         return (Row3) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										145
									
								
								src/jooq/java/de/jottyfan/timetrack/db/done/tables/VDaily.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										145
									
								
								src/jooq/java/de/jottyfan/timetrack/db/done/tables/VDaily.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,145 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VDailyRecord; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.ForeignKey; | ||||||
|  | import org.jooq.Name; | ||||||
|  | import org.jooq.Record; | ||||||
|  | import org.jooq.Row4; | ||||||
|  | import org.jooq.Schema; | ||||||
|  | import org.jooq.Table; | ||||||
|  | import org.jooq.TableField; | ||||||
|  | import org.jooq.impl.DSL; | ||||||
|  | import org.jooq.impl.TableImpl; | ||||||
|  | import org.jooq.types.YearToSecond; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDaily extends TableImpl<VDailyRecord> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = -220365849; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The reference instance of <code>done.v_daily</code> | ||||||
|  |      */ | ||||||
|  |     public static final VDaily V_DAILY = new VDaily(); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The class holding records for this type | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public Class<VDailyRecord> getRecordType() { | ||||||
|  |         return VDailyRecord.class; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daily.worktime</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDailyRecord, YearToSecond> WORKTIME = createField(DSL.name("worktime"), org.jooq.impl.SQLDataType.INTERVAL, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daily.day</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDailyRecord, String> DAY = createField(DSL.name("day"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daily.login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDailyRecord, String> LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daily.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDailyRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a <code>done.v_daily</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaily() { | ||||||
|  |         this(DSL.name("v_daily"), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_daily</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaily(String alias) { | ||||||
|  |         this(DSL.name(alias), V_DAILY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_daily</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaily(Name alias) { | ||||||
|  |         this(alias, V_DAILY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDaily(Name alias, Table<VDailyRecord> aliased) { | ||||||
|  |         this(alias, aliased, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDaily(Name alias, Table<VDailyRecord> aliased, Field<?>[] parameters) { | ||||||
|  |         super(alias, null, aliased, parameters, DSL.comment("")); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public <O extends Record> VDaily(Table<O> child, ForeignKey<O, VDailyRecord> key) { | ||||||
|  |         super(child, key, V_DAILY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Schema getSchema() { | ||||||
|  |         return Done.DONE; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaily as(String alias) { | ||||||
|  |         return new VDaily(DSL.name(alias), this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaily as(Name alias) { | ||||||
|  |         return new VDaily(alias, this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDaily rename(String name) { | ||||||
|  |         return new VDaily(DSL.name(name), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDaily rename(Name name) { | ||||||
|  |         return new VDaily(name, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row4 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row4<YearToSecond, String, String, Integer> fieldsRow() { | ||||||
|  |         return (Row4) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,147 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VDaylimitsRecord; | ||||||
|  |  | ||||||
|  | import java.sql.Timestamp; | ||||||
|  | import java.time.OffsetDateTime; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.ForeignKey; | ||||||
|  | import org.jooq.Name; | ||||||
|  | import org.jooq.Record; | ||||||
|  | import org.jooq.Row4; | ||||||
|  | import org.jooq.Schema; | ||||||
|  | import org.jooq.Table; | ||||||
|  | import org.jooq.TableField; | ||||||
|  | import org.jooq.impl.DSL; | ||||||
|  | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDaylimits extends TableImpl<VDaylimitsRecord> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = 1186965315; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The reference instance of <code>done.v_daylimits</code> | ||||||
|  |      */ | ||||||
|  |     public static final VDaylimits V_DAYLIMITS = new VDaylimits(); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The class holding records for this type | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public Class<VDaylimitsRecord> getRecordType() { | ||||||
|  |         return VDaylimitsRecord.class; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daylimits.work_start</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaylimitsRecord, Timestamp> WORK_START = createField(DSL.name("work_start"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daylimits.work_end</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaylimitsRecord, OffsetDateTime> WORK_END = createField(DSL.name("work_end"), org.jooq.impl.SQLDataType.TIMESTAMPWITHTIMEZONE, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daylimits.day</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaylimitsRecord, String> DAY = createField(DSL.name("day"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daylimits.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaylimitsRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a <code>done.v_daylimits</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaylimits() { | ||||||
|  |         this(DSL.name("v_daylimits"), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_daylimits</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaylimits(String alias) { | ||||||
|  |         this(DSL.name(alias), V_DAYLIMITS); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_daylimits</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaylimits(Name alias) { | ||||||
|  |         this(alias, V_DAYLIMITS); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDaylimits(Name alias, Table<VDaylimitsRecord> aliased) { | ||||||
|  |         this(alias, aliased, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDaylimits(Name alias, Table<VDaylimitsRecord> aliased, Field<?>[] parameters) { | ||||||
|  |         super(alias, null, aliased, parameters, DSL.comment("")); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public <O extends Record> VDaylimits(Table<O> child, ForeignKey<O, VDaylimitsRecord> key) { | ||||||
|  |         super(child, key, V_DAYLIMITS); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Schema getSchema() { | ||||||
|  |         return Done.DONE; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaylimits as(String alias) { | ||||||
|  |         return new VDaylimits(DSL.name(alias), this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaylimits as(Name alias) { | ||||||
|  |         return new VDaylimits(alias, this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDaylimits rename(String name) { | ||||||
|  |         return new VDaylimits(DSL.name(name), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDaylimits rename(Name name) { | ||||||
|  |         return new VDaylimits(name, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row4 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row4<Timestamp, OffsetDateTime, String, Integer> fieldsRow() { | ||||||
|  |         return (Row4) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,163 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VDaysummaryRecord; | ||||||
|  |  | ||||||
|  | import java.sql.Timestamp; | ||||||
|  | import java.time.OffsetDateTime; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.ForeignKey; | ||||||
|  | import org.jooq.Name; | ||||||
|  | import org.jooq.Record; | ||||||
|  | import org.jooq.Row7; | ||||||
|  | import org.jooq.Schema; | ||||||
|  | import org.jooq.Table; | ||||||
|  | import org.jooq.TableField; | ||||||
|  | import org.jooq.impl.DSL; | ||||||
|  | import org.jooq.impl.TableImpl; | ||||||
|  | import org.jooq.types.YearToSecond; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDaysummary extends TableImpl<VDaysummaryRecord> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = 524060696; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The reference instance of <code>done.v_daysummary</code> | ||||||
|  |      */ | ||||||
|  |     public static final VDaysummary V_DAYSUMMARY = new VDaysummary(); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The class holding records for this type | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public Class<VDaysummaryRecord> getRecordType() { | ||||||
|  |         return VDaysummaryRecord.class; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daysummary.breaktime</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaysummaryRecord, YearToSecond> BREAKTIME = createField(DSL.name("breaktime"), org.jooq.impl.SQLDataType.INTERVAL, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daysummary.worktime</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaysummaryRecord, YearToSecond> WORKTIME = createField(DSL.name("worktime"), org.jooq.impl.SQLDataType.INTERVAL, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daysummary.work_start</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaysummaryRecord, Timestamp> WORK_START = createField(DSL.name("work_start"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daysummary.work_end</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaysummaryRecord, OffsetDateTime> WORK_END = createField(DSL.name("work_end"), org.jooq.impl.SQLDataType.TIMESTAMPWITHTIMEZONE, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daysummary.day</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaysummaryRecord, String> DAY = createField(DSL.name("day"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daysummary.login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaysummaryRecord, String> LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_daysummary.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDaysummaryRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a <code>done.v_daysummary</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaysummary() { | ||||||
|  |         this(DSL.name("v_daysummary"), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_daysummary</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaysummary(String alias) { | ||||||
|  |         this(DSL.name(alias), V_DAYSUMMARY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_daysummary</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDaysummary(Name alias) { | ||||||
|  |         this(alias, V_DAYSUMMARY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDaysummary(Name alias, Table<VDaysummaryRecord> aliased) { | ||||||
|  |         this(alias, aliased, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDaysummary(Name alias, Table<VDaysummaryRecord> aliased, Field<?>[] parameters) { | ||||||
|  |         super(alias, null, aliased, parameters, DSL.comment("")); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public <O extends Record> VDaysummary(Table<O> child, ForeignKey<O, VDaysummaryRecord> key) { | ||||||
|  |         super(child, key, V_DAYSUMMARY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Schema getSchema() { | ||||||
|  |         return Done.DONE; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummary as(String alias) { | ||||||
|  |         return new VDaysummary(DSL.name(alias), this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummary as(Name alias) { | ||||||
|  |         return new VDaysummary(alias, this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDaysummary rename(String name) { | ||||||
|  |         return new VDaysummary(DSL.name(name), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDaysummary rename(Name name) { | ||||||
|  |         return new VDaysummary(name, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row7 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row7<YearToSecond, YearToSecond, Timestamp, OffsetDateTime, String, String, Integer> fieldsRow() { | ||||||
|  |         return (Row7) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										166
									
								
								src/jooq/java/de/jottyfan/timetrack/db/done/tables/VDone.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										166
									
								
								src/jooq/java/de/jottyfan/timetrack/db/done/tables/VDone.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,166 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VDoneRecord; | ||||||
|  |  | ||||||
|  | import java.sql.Timestamp; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.ForeignKey; | ||||||
|  | import org.jooq.Name; | ||||||
|  | import org.jooq.Record; | ||||||
|  | import org.jooq.Row8; | ||||||
|  | import org.jooq.Schema; | ||||||
|  | import org.jooq.Table; | ||||||
|  | import org.jooq.TableField; | ||||||
|  | import org.jooq.impl.DSL; | ||||||
|  | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDone extends TableImpl<VDoneRecord> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = -842360229; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The reference instance of <code>done.v_done</code> | ||||||
|  |      */ | ||||||
|  |     public static final VDone V_DONE = new VDone(); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The class holding records for this type | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public Class<VDoneRecord> getRecordType() { | ||||||
|  |         return VDoneRecord.class; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_done.fk_done</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDoneRecord, Integer> FK_DONE = createField(DSL.name("fk_done"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_done.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDoneRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_done.time_from</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDoneRecord, Timestamp> TIME_FROM = createField(DSL.name("time_from"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_done.time_until</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDoneRecord, Timestamp> TIME_UNTIL = createField(DSL.name("time_until"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_done.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDoneRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_done.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDoneRecord, String> MODULE_NAME = createField(DSL.name("module_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_done.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDoneRecord, String> JOB_NAME = createField(DSL.name("job_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_done.login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDoneRecord, String> LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a <code>done.v_done</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDone() { | ||||||
|  |         this(DSL.name("v_done"), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_done</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDone(String alias) { | ||||||
|  |         this(DSL.name(alias), V_DONE); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_done</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDone(Name alias) { | ||||||
|  |         this(alias, V_DONE); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDone(Name alias, Table<VDoneRecord> aliased) { | ||||||
|  |         this(alias, aliased, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDone(Name alias, Table<VDoneRecord> aliased, Field<?>[] parameters) { | ||||||
|  |         super(alias, null, aliased, parameters, DSL.comment("")); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public <O extends Record> VDone(Table<O> child, ForeignKey<O, VDoneRecord> key) { | ||||||
|  |         super(child, key, V_DONE); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Schema getSchema() { | ||||||
|  |         return Done.DONE; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDone as(String alias) { | ||||||
|  |         return new VDone(DSL.name(alias), this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDone as(Name alias) { | ||||||
|  |         return new VDone(alias, this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDone rename(String name) { | ||||||
|  |         return new VDone(DSL.name(name), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDone rename(Name name) { | ||||||
|  |         return new VDone(name, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row8 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row8<Integer, Integer, Timestamp, Timestamp, String, String, String, String> fieldsRow() { | ||||||
|  |         return (Row8) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,160 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VDurationRecord; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.ForeignKey; | ||||||
|  | import org.jooq.Name; | ||||||
|  | import org.jooq.Record; | ||||||
|  | import org.jooq.Row7; | ||||||
|  | import org.jooq.Schema; | ||||||
|  | import org.jooq.Table; | ||||||
|  | import org.jooq.TableField; | ||||||
|  | import org.jooq.impl.DSL; | ||||||
|  | import org.jooq.impl.TableImpl; | ||||||
|  | import org.jooq.types.YearToSecond; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDuration extends TableImpl<VDurationRecord> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = -578535096; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The reference instance of <code>done.v_duration</code> | ||||||
|  |      */ | ||||||
|  |     public static final VDuration V_DURATION = new VDuration(); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The class holding records for this type | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public Class<VDurationRecord> getRecordType() { | ||||||
|  |         return VDurationRecord.class; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_duration.day</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDurationRecord, String> DAY = createField(DSL.name("day"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_duration.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDurationRecord, YearToSecond> DURATION = createField(DSL.name("duration"), org.jooq.impl.SQLDataType.INTERVAL, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_duration.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDurationRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_duration.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDurationRecord, String> MODULE_NAME = createField(DSL.name("module_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_duration.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDurationRecord, String> JOB_NAME = createField(DSL.name("job_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_duration.login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDurationRecord, String> LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_duration.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VDurationRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a <code>done.v_duration</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDuration() { | ||||||
|  |         this(DSL.name("v_duration"), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_duration</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDuration(String alias) { | ||||||
|  |         this(DSL.name(alias), V_DURATION); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_duration</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VDuration(Name alias) { | ||||||
|  |         this(alias, V_DURATION); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDuration(Name alias, Table<VDurationRecord> aliased) { | ||||||
|  |         this(alias, aliased, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VDuration(Name alias, Table<VDurationRecord> aliased, Field<?>[] parameters) { | ||||||
|  |         super(alias, null, aliased, parameters, DSL.comment("")); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public <O extends Record> VDuration(Table<O> child, ForeignKey<O, VDurationRecord> key) { | ||||||
|  |         super(child, key, V_DURATION); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Schema getSchema() { | ||||||
|  |         return Done.DONE; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDuration as(String alias) { | ||||||
|  |         return new VDuration(DSL.name(alias), this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDuration as(Name alias) { | ||||||
|  |         return new VDuration(alias, this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDuration rename(String name) { | ||||||
|  |         return new VDuration(DSL.name(name), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VDuration rename(Name name) { | ||||||
|  |         return new VDuration(name, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row7 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row7<String, YearToSecond, String, String, String, String, Integer> fieldsRow() { | ||||||
|  |         return (Row7) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										157
									
								
								src/jooq/java/de/jottyfan/timetrack/db/done/tables/VHamster.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										157
									
								
								src/jooq/java/de/jottyfan/timetrack/db/done/tables/VHamster.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,157 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VHamsterRecord; | ||||||
|  |  | ||||||
|  | import java.sql.Date; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.ForeignKey; | ||||||
|  | import org.jooq.Name; | ||||||
|  | import org.jooq.Record; | ||||||
|  | import org.jooq.Row6; | ||||||
|  | import org.jooq.Schema; | ||||||
|  | import org.jooq.Table; | ||||||
|  | import org.jooq.TableField; | ||||||
|  | import org.jooq.impl.DSL; | ||||||
|  | import org.jooq.impl.TableImpl; | ||||||
|  | import org.jooq.types.YearToSecond; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VHamster extends TableImpl<VHamsterRecord> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = -137413152; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The reference instance of <code>done.v_hamster</code> | ||||||
|  |      */ | ||||||
|  |     public static final VHamster V_HAMSTER = new VHamster(); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The class holding records for this type | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public Class<VHamsterRecord> getRecordType() { | ||||||
|  |         return VHamsterRecord.class; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamster.workday</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamsterRecord, Date> WORKDAY = createField(DSL.name("workday"), org.jooq.impl.SQLDataType.DATE, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamster.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamsterRecord, YearToSecond> DURATION = createField(DSL.name("duration"), org.jooq.impl.SQLDataType.INTERVAL, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamster.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamsterRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamster.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamsterRecord, String> MODULE_NAME = createField(DSL.name("module_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamster.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamsterRecord, String> JOB_NAME = createField(DSL.name("job_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamster.login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamsterRecord, String> LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a <code>done.v_hamster</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VHamster() { | ||||||
|  |         this(DSL.name("v_hamster"), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_hamster</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VHamster(String alias) { | ||||||
|  |         this(DSL.name(alias), V_HAMSTER); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_hamster</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VHamster(Name alias) { | ||||||
|  |         this(alias, V_HAMSTER); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VHamster(Name alias, Table<VHamsterRecord> aliased) { | ||||||
|  |         this(alias, aliased, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VHamster(Name alias, Table<VHamsterRecord> aliased, Field<?>[] parameters) { | ||||||
|  |         super(alias, null, aliased, parameters, DSL.comment("")); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public <O extends Record> VHamster(Table<O> child, ForeignKey<O, VHamsterRecord> key) { | ||||||
|  |         super(child, key, V_HAMSTER); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Schema getSchema() { | ||||||
|  |         return Done.DONE; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamster as(String alias) { | ||||||
|  |         return new VHamster(DSL.name(alias), this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamster as(Name alias) { | ||||||
|  |         return new VHamster(alias, this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VHamster rename(String name) { | ||||||
|  |         return new VHamster(DSL.name(name), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VHamster rename(Name name) { | ||||||
|  |         return new VHamster(name, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row6 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<Date, YearToSecond, String, String, String, String> fieldsRow() { | ||||||
|  |         return (Row6) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,156 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VHamstersummaryRecord; | ||||||
|  |  | ||||||
|  | import java.sql.Date; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.ForeignKey; | ||||||
|  | import org.jooq.Name; | ||||||
|  | import org.jooq.Record; | ||||||
|  | import org.jooq.Row6; | ||||||
|  | import org.jooq.Schema; | ||||||
|  | import org.jooq.Table; | ||||||
|  | import org.jooq.TableField; | ||||||
|  | import org.jooq.impl.DSL; | ||||||
|  | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VHamstersummary extends TableImpl<VHamstersummaryRecord> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = -285333605; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The reference instance of <code>done.v_hamstersummary</code> | ||||||
|  |      */ | ||||||
|  |     public static final VHamstersummary V_HAMSTERSUMMARY = new VHamstersummary(); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The class holding records for this type | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public Class<VHamstersummaryRecord> getRecordType() { | ||||||
|  |         return VHamstersummaryRecord.class; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamstersummary.workday</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamstersummaryRecord, Date> WORKDAY = createField(DSL.name("workday"), org.jooq.impl.SQLDataType.DATE, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamstersummary.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamstersummaryRecord, String> DURATION = createField(DSL.name("duration"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamstersummary.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamstersummaryRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamstersummary.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamstersummaryRecord, String> MODULE_NAME = createField(DSL.name("module_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamstersummary.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamstersummaryRecord, String> JOB_NAME = createField(DSL.name("job_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * The column <code>done.v_hamstersummary.login</code>. | ||||||
|  |      */ | ||||||
|  |     public final TableField<VHamstersummaryRecord, String> LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a <code>done.v_hamstersummary</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VHamstersummary() { | ||||||
|  |         this(DSL.name("v_hamstersummary"), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_hamstersummary</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VHamstersummary(String alias) { | ||||||
|  |         this(DSL.name(alias), V_HAMSTERSUMMARY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create an aliased <code>done.v_hamstersummary</code> table reference | ||||||
|  |      */ | ||||||
|  |     public VHamstersummary(Name alias) { | ||||||
|  |         this(alias, V_HAMSTERSUMMARY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VHamstersummary(Name alias, Table<VHamstersummaryRecord> aliased) { | ||||||
|  |         this(alias, aliased, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private VHamstersummary(Name alias, Table<VHamstersummaryRecord> aliased, Field<?>[] parameters) { | ||||||
|  |         super(alias, null, aliased, parameters, DSL.comment("")); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     public <O extends Record> VHamstersummary(Table<O> child, ForeignKey<O, VHamstersummaryRecord> key) { | ||||||
|  |         super(child, key, V_HAMSTERSUMMARY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Schema getSchema() { | ||||||
|  |         return Done.DONE; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummary as(String alias) { | ||||||
|  |         return new VHamstersummary(DSL.name(alias), this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummary as(Name alias) { | ||||||
|  |         return new VHamstersummary(alias, this); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummary rename(String name) { | ||||||
|  |         return new VHamstersummary(DSL.name(name), null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Rename this table | ||||||
|  |      */ | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummary rename(Name name) { | ||||||
|  |         return new VHamstersummary(name, null); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row6 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<Date, String, String, String, String, String> fieldsRow() { | ||||||
|  |         return (Row6) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -4,21 +4,22 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables; | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VTasklistRecord; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Field; | import org.jooq.Field; | ||||||
| import org.jooq.ForeignKey; | import org.jooq.ForeignKey; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row6; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.Done; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.VTasklistRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -26,14 +27,14 @@ import de.jottyfan.timetrack.db.done.tables.records.VTasklistRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class VTasklist extends TableImpl<VTasklistRecord> { | public class VTasklist extends TableImpl<VTasklistRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -1582867869; |     private static final long serialVersionUID = -109801723; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>done.v_tasklist</code> |      * The reference instance of <code>done.v_tasklist</code> | ||||||
| @@ -51,32 +52,32 @@ public class VTasklist extends TableImpl<VTasklistRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_tasklist.day</code>. |      * The column <code>done.v_tasklist.day</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTasklistRecord, String> DAY = createField("day", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTasklistRecord, String> DAY = createField(DSL.name("day"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_tasklist.duration</code>. |      * The column <code>done.v_tasklist.duration</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTasklistRecord, String> DURATION = createField("duration", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTasklistRecord, String> DURATION = createField(DSL.name("duration"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_tasklist.project_name</code>. |      * The column <code>done.v_tasklist.project_name</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTasklistRecord, String> PROJECT_NAME = createField("project_name", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTasklistRecord, String> PROJECT_NAME = createField(DSL.name("project_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_tasklist.module_name</code>. |      * The column <code>done.v_tasklist.module_name</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTasklistRecord, String> MODULE_NAME = createField("module_name", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTasklistRecord, String> MODULE_NAME = createField(DSL.name("module_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_tasklist.job_name</code>. |      * The column <code>done.v_tasklist.job_name</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTasklistRecord, String> JOB_NAME = createField("job_name", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTasklistRecord, String> JOB_NAME = createField(DSL.name("job_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_tasklist.fk_login</code>. |      * The column <code>done.v_tasklist.fk_login</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTasklistRecord, Integer> FK_LOGIN = createField("fk_login", org.jooq.impl.SQLDataType.INTEGER, this, ""); |     public final TableField<VTasklistRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>done.v_tasklist</code> table reference |      * Create a <code>done.v_tasklist</code> table reference | ||||||
| @@ -111,25 +112,16 @@ public class VTasklist extends TableImpl<VTasklistRecord> { | |||||||
|         super(child, key, V_TASKLIST); |         super(child, key, V_TASKLIST); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Done.DONE; |         return Done.DONE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklist as(String alias) { |     public VTasklist as(String alias) { | ||||||
|         return new VTasklist(DSL.name(alias), this); |         return new VTasklist(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklist as(Name alias) { |     public VTasklist as(Name alias) { | ||||||
|         return new VTasklist(alias, this); |         return new VTasklist(alias, this); | ||||||
| @@ -150,4 +142,13 @@ public class VTasklist extends TableImpl<VTasklistRecord> { | |||||||
|     public VTasklist rename(Name name) { |     public VTasklist rename(Name name) { | ||||||
|         return new VTasklist(name, null); |         return new VTasklist(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row6 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<String, String, String, String, String, Integer> fieldsRow() { | ||||||
|  |         return (Row6) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,21 +4,22 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables; | package de.jottyfan.timetrack.db.done.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.Done; | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.records.VTotalofdayRecord; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Field; | import org.jooq.Field; | ||||||
| import org.jooq.ForeignKey; | import org.jooq.ForeignKey; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row6; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.Done; |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.VTotalofdayRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -26,14 +27,14 @@ import de.jottyfan.timetrack.db.done.tables.records.VTotalofdayRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class VTotalofday extends TableImpl<VTotalofdayRecord> { | public class VTotalofday extends TableImpl<VTotalofdayRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -893085978; |     private static final long serialVersionUID = 1381929458; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>done.v_totalofday</code> |      * The reference instance of <code>done.v_totalofday</code> | ||||||
| @@ -51,32 +52,32 @@ public class VTotalofday extends TableImpl<VTotalofdayRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_totalofday.breaktime</code>. |      * The column <code>done.v_totalofday.breaktime</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTotalofdayRecord, String> BREAKTIME = createField("breaktime", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTotalofdayRecord, String> BREAKTIME = createField(DSL.name("breaktime"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_totalofday.worktime</code>. |      * The column <code>done.v_totalofday.worktime</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTotalofdayRecord, String> WORKTIME = createField("worktime", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTotalofdayRecord, String> WORKTIME = createField(DSL.name("worktime"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_totalofday.starttime</code>. |      * The column <code>done.v_totalofday.starttime</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTotalofdayRecord, String> STARTTIME = createField("starttime", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTotalofdayRecord, String> STARTTIME = createField(DSL.name("starttime"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_totalofday.endtime</code>. |      * The column <code>done.v_totalofday.endtime</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTotalofdayRecord, String> ENDTIME = createField("endtime", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTotalofdayRecord, String> ENDTIME = createField(DSL.name("endtime"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_totalofday.day</code>. |      * The column <code>done.v_totalofday.day</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTotalofdayRecord, String> DAY = createField("day", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VTotalofdayRecord, String> DAY = createField(DSL.name("day"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>done.v_totalofday.fk_login</code>. |      * The column <code>done.v_totalofday.fk_login</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VTotalofdayRecord, Integer> FK_LOGIN = createField("fk_login", org.jooq.impl.SQLDataType.INTEGER, this, ""); |     public final TableField<VTotalofdayRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>done.v_totalofday</code> table reference |      * Create a <code>done.v_totalofday</code> table reference | ||||||
| @@ -111,25 +112,16 @@ public class VTotalofday extends TableImpl<VTotalofdayRecord> { | |||||||
|         super(child, key, V_TOTALOFDAY); |         super(child, key, V_TOTALOFDAY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Done.DONE; |         return Done.DONE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofday as(String alias) { |     public VTotalofday as(String alias) { | ||||||
|         return new VTotalofday(DSL.name(alias), this); |         return new VTotalofday(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofday as(Name alias) { |     public VTotalofday as(Name alias) { | ||||||
|         return new VTotalofday(alias, this); |         return new VTotalofday(alias, this); | ||||||
| @@ -150,4 +142,13 @@ public class VTotalofday extends TableImpl<VTotalofdayRecord> { | |||||||
|     public VTotalofday rename(Name name) { |     public VTotalofday rename(Name name) { | ||||||
|         return new VTotalofday(name, null); |         return new VTotalofday(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row6 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<String, String, String, String, String, Integer> fieldsRow() { | ||||||
|  |         return (Row6) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables.records; | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TDone; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,8 +15,6 @@ import org.jooq.Record8; | |||||||
| import org.jooq.Row8; | import org.jooq.Row8; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TDone; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -22,14 +22,14 @@ import de.jottyfan.timetrack.db.done.tables.TDone; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TDoneRecord extends TableRecordImpl<TDoneRecord> implements Record8<Timestamp, Integer, Timestamp, Timestamp, Integer, Integer, Integer, Integer> { | public class TDoneRecord extends TableRecordImpl<TDoneRecord> implements Record8<Timestamp, Integer, Timestamp, Timestamp, Integer, Integer, Integer, Integer> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 626421558; |     private static final long serialVersionUID = 254775418; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>done.t_done.lastchange</code>. |      * Setter for <code>done.t_done.lastchange</code>. | ||||||
| @@ -147,289 +147,184 @@ public class TDoneRecord extends TableRecordImpl<TDoneRecord> implements Record8 | |||||||
|     // Record8 type implementation |     // Record8 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row8<Timestamp, Integer, Timestamp, Timestamp, Integer, Integer, Integer, Integer> fieldsRow() { |     public Row8<Timestamp, Integer, Timestamp, Timestamp, Integer, Integer, Integer, Integer> fieldsRow() { | ||||||
|         return (Row8) super.fieldsRow(); |         return (Row8) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row8<Timestamp, Integer, Timestamp, Timestamp, Integer, Integer, Integer, Integer> valuesRow() { |     public Row8<Timestamp, Integer, Timestamp, Timestamp, Integer, Integer, Integer, Integer> valuesRow() { | ||||||
|         return (Row8) super.valuesRow(); |         return (Row8) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field1() { |     public Field<Timestamp> field1() { | ||||||
|         return TDone.T_DONE.LASTCHANGE; |         return TDone.T_DONE.LASTCHANGE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field2() { |     public Field<Integer> field2() { | ||||||
|         return TDone.T_DONE.PK; |         return TDone.T_DONE.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field3() { |     public Field<Timestamp> field3() { | ||||||
|         return TDone.T_DONE.TIME_FROM; |         return TDone.T_DONE.TIME_FROM; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field4() { |     public Field<Timestamp> field4() { | ||||||
|         return TDone.T_DONE.TIME_UNTIL; |         return TDone.T_DONE.TIME_UNTIL; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field5() { |     public Field<Integer> field5() { | ||||||
|         return TDone.T_DONE.FK_PROJECT; |         return TDone.T_DONE.FK_PROJECT; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field6() { |     public Field<Integer> field6() { | ||||||
|         return TDone.T_DONE.FK_MODULE; |         return TDone.T_DONE.FK_MODULE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field7() { |     public Field<Integer> field7() { | ||||||
|         return TDone.T_DONE.FK_JOB; |         return TDone.T_DONE.FK_JOB; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field8() { |     public Field<Integer> field8() { | ||||||
|         return TDone.T_DONE.FK_LOGIN; |         return TDone.T_DONE.FK_LOGIN; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component1() { |     public Timestamp component1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component2() { |     public Integer component2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component3() { |     public Timestamp component3() { | ||||||
|         return getTimeFrom(); |         return getTimeFrom(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component4() { |     public Timestamp component4() { | ||||||
|         return getTimeUntil(); |         return getTimeUntil(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component5() { |     public Integer component5() { | ||||||
|         return getFkProject(); |         return getFkProject(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component6() { |     public Integer component6() { | ||||||
|         return getFkModule(); |         return getFkModule(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component7() { |     public Integer component7() { | ||||||
|         return getFkJob(); |         return getFkJob(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component8() { |     public Integer component8() { | ||||||
|         return getFkLogin(); |         return getFkLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value1() { |     public Timestamp value1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value2() { |     public Integer value2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value3() { |     public Timestamp value3() { | ||||||
|         return getTimeFrom(); |         return getTimeFrom(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value4() { |     public Timestamp value4() { | ||||||
|         return getTimeUntil(); |         return getTimeUntil(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value5() { |     public Integer value5() { | ||||||
|         return getFkProject(); |         return getFkProject(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value6() { |     public Integer value6() { | ||||||
|         return getFkModule(); |         return getFkModule(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value7() { |     public Integer value7() { | ||||||
|         return getFkJob(); |         return getFkJob(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value8() { |     public Integer value8() { | ||||||
|         return getFkLogin(); |         return getFkLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord value1(Timestamp value) { |     public TDoneRecord value1(Timestamp value) { | ||||||
|         setLastchange(value); |         setLastchange(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord value2(Integer value) { |     public TDoneRecord value2(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord value3(Timestamp value) { |     public TDoneRecord value3(Timestamp value) { | ||||||
|         setTimeFrom(value); |         setTimeFrom(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord value4(Timestamp value) { |     public TDoneRecord value4(Timestamp value) { | ||||||
|         setTimeUntil(value); |         setTimeUntil(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord value5(Integer value) { |     public TDoneRecord value5(Integer value) { | ||||||
|         setFkProject(value); |         setFkProject(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord value6(Integer value) { |     public TDoneRecord value6(Integer value) { | ||||||
|         setFkModule(value); |         setFkModule(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord value7(Integer value) { |     public TDoneRecord value7(Integer value) { | ||||||
|         setFkJob(value); |         setFkJob(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord value8(Integer value) { |     public TDoneRecord value8(Integer value) { | ||||||
|         setFkLogin(value); |         setFkLogin(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TDoneRecord values(Timestamp value1, Integer value2, Timestamp value3, Timestamp value4, Integer value5, Integer value6, Integer value7, Integer value8) { |     public TDoneRecord values(Timestamp value1, Integer value2, Timestamp value3, Timestamp value4, Integer value5, Integer value6, Integer value7, Integer value8) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables.records; | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TJob; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,8 +15,6 @@ import org.jooq.Record3; | |||||||
| import org.jooq.Row3; | import org.jooq.Row3; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TJob; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -22,14 +22,14 @@ import de.jottyfan.timetrack.db.done.tables.TJob; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TJobRecord extends TableRecordImpl<TJobRecord> implements Record3<Timestamp, Integer, String> { | public class TJobRecord extends TableRecordImpl<TJobRecord> implements Record3<Timestamp, Integer, String> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 2822323; |     private static final long serialVersionUID = 501080223; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>done.t_job.lastchange</code>. |      * Setter for <code>done.t_job.lastchange</code>. | ||||||
| @@ -77,124 +77,79 @@ public class TJobRecord extends TableRecordImpl<TJobRecord> implements Record3<T | |||||||
|     // Record3 type implementation |     // Record3 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row3<Timestamp, Integer, String> fieldsRow() { |     public Row3<Timestamp, Integer, String> fieldsRow() { | ||||||
|         return (Row3) super.fieldsRow(); |         return (Row3) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row3<Timestamp, Integer, String> valuesRow() { |     public Row3<Timestamp, Integer, String> valuesRow() { | ||||||
|         return (Row3) super.valuesRow(); |         return (Row3) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field1() { |     public Field<Timestamp> field1() { | ||||||
|         return TJob.T_JOB.LASTCHANGE; |         return TJob.T_JOB.LASTCHANGE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field2() { |     public Field<Integer> field2() { | ||||||
|         return TJob.T_JOB.PK; |         return TJob.T_JOB.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return TJob.T_JOB.NAME; |         return TJob.T_JOB.NAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component1() { |     public Timestamp component1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component2() { |     public Integer component2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getName(); |         return getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value1() { |     public Timestamp value1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value2() { |     public Integer value2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getName(); |         return getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TJobRecord value1(Timestamp value) { |     public TJobRecord value1(Timestamp value) { | ||||||
|         setLastchange(value); |         setLastchange(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TJobRecord value2(Integer value) { |     public TJobRecord value2(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TJobRecord value3(String value) { |     public TJobRecord value3(String value) { | ||||||
|         setName(value); |         setName(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TJobRecord values(Timestamp value1, Integer value2, String value3) { |     public TJobRecord values(Timestamp value1, Integer value2, String value3) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables.records; | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TModule; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,8 +15,6 @@ import org.jooq.Record3; | |||||||
| import org.jooq.Row3; | import org.jooq.Row3; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TModule; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -22,14 +22,14 @@ import de.jottyfan.timetrack.db.done.tables.TModule; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TModuleRecord extends TableRecordImpl<TModuleRecord> implements Record3<Timestamp, Integer, String> { | public class TModuleRecord extends TableRecordImpl<TModuleRecord> implements Record3<Timestamp, Integer, String> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1076253804; |     private static final long serialVersionUID = 1180844514; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>done.t_module.lastchange</code>. |      * Setter for <code>done.t_module.lastchange</code>. | ||||||
| @@ -77,124 +77,79 @@ public class TModuleRecord extends TableRecordImpl<TModuleRecord> implements Rec | |||||||
|     // Record3 type implementation |     // Record3 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row3<Timestamp, Integer, String> fieldsRow() { |     public Row3<Timestamp, Integer, String> fieldsRow() { | ||||||
|         return (Row3) super.fieldsRow(); |         return (Row3) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row3<Timestamp, Integer, String> valuesRow() { |     public Row3<Timestamp, Integer, String> valuesRow() { | ||||||
|         return (Row3) super.valuesRow(); |         return (Row3) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field1() { |     public Field<Timestamp> field1() { | ||||||
|         return TModule.T_MODULE.LASTCHANGE; |         return TModule.T_MODULE.LASTCHANGE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field2() { |     public Field<Integer> field2() { | ||||||
|         return TModule.T_MODULE.PK; |         return TModule.T_MODULE.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return TModule.T_MODULE.NAME; |         return TModule.T_MODULE.NAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component1() { |     public Timestamp component1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component2() { |     public Integer component2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getName(); |         return getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value1() { |     public Timestamp value1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value2() { |     public Integer value2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getName(); |         return getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TModuleRecord value1(Timestamp value) { |     public TModuleRecord value1(Timestamp value) { | ||||||
|         setLastchange(value); |         setLastchange(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TModuleRecord value2(Integer value) { |     public TModuleRecord value2(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TModuleRecord value3(String value) { |     public TModuleRecord value3(String value) { | ||||||
|         setName(value); |         setName(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TModuleRecord values(Timestamp value1, Integer value2, String value3) { |     public TModuleRecord values(Timestamp value1, Integer value2, String value3) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables.records; | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.TProject; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,8 +15,6 @@ import org.jooq.Record3; | |||||||
| import org.jooq.Row3; | import org.jooq.Row3; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.TProject; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -22,14 +22,14 @@ import de.jottyfan.timetrack.db.done.tables.TProject; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TProjectRecord extends TableRecordImpl<TProjectRecord> implements Record3<Timestamp, Integer, String> { | public class TProjectRecord extends TableRecordImpl<TProjectRecord> implements Record3<Timestamp, Integer, String> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -1558586881; |     private static final long serialVersionUID = 1864163507; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>done.t_project.lastchange</code>. |      * Setter for <code>done.t_project.lastchange</code>. | ||||||
| @@ -77,124 +77,79 @@ public class TProjectRecord extends TableRecordImpl<TProjectRecord> implements R | |||||||
|     // Record3 type implementation |     // Record3 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row3<Timestamp, Integer, String> fieldsRow() { |     public Row3<Timestamp, Integer, String> fieldsRow() { | ||||||
|         return (Row3) super.fieldsRow(); |         return (Row3) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row3<Timestamp, Integer, String> valuesRow() { |     public Row3<Timestamp, Integer, String> valuesRow() { | ||||||
|         return (Row3) super.valuesRow(); |         return (Row3) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field1() { |     public Field<Timestamp> field1() { | ||||||
|         return TProject.T_PROJECT.LASTCHANGE; |         return TProject.T_PROJECT.LASTCHANGE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field2() { |     public Field<Integer> field2() { | ||||||
|         return TProject.T_PROJECT.PK; |         return TProject.T_PROJECT.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return TProject.T_PROJECT.NAME; |         return TProject.T_PROJECT.NAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component1() { |     public Timestamp component1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component2() { |     public Integer component2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getName(); |         return getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value1() { |     public Timestamp value1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value2() { |     public Integer value2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getName(); |         return getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TProjectRecord value1(Timestamp value) { |     public TProjectRecord value1(Timestamp value) { | ||||||
|         setLastchange(value); |         setLastchange(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TProjectRecord value2(Integer value) { |     public TProjectRecord value2(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TProjectRecord value3(String value) { |     public TProjectRecord value3(String value) { | ||||||
|         setName(value); |         setName(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TProjectRecord values(Timestamp value1, Integer value2, String value3) { |     public TProjectRecord values(Timestamp value1, Integer value2, String value3) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -0,0 +1,218 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaily; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.Record4; | ||||||
|  | import org.jooq.Row4; | ||||||
|  | import org.jooq.impl.TableRecordImpl; | ||||||
|  | import org.jooq.types.YearToSecond; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDailyRecord extends TableRecordImpl<VDailyRecord> implements Record4<YearToSecond, String, String, Integer> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = 111682889; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daily.worktime</code>. | ||||||
|  |      */ | ||||||
|  |     public void setWorktime(YearToSecond value) { | ||||||
|  |         set(0, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daily.worktime</code>. | ||||||
|  |      */ | ||||||
|  |     public YearToSecond getWorktime() { | ||||||
|  |         return (YearToSecond) get(0); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daily.day</code>. | ||||||
|  |      */ | ||||||
|  |     public void setDay(String value) { | ||||||
|  |         set(1, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daily.day</code>. | ||||||
|  |      */ | ||||||
|  |     public String getDay() { | ||||||
|  |         return (String) get(1); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daily.login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setLogin(String value) { | ||||||
|  |         set(2, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daily.login</code>. | ||||||
|  |      */ | ||||||
|  |     public String getLogin() { | ||||||
|  |         return (String) get(2); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daily.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setFkLogin(Integer value) { | ||||||
|  |         set(3, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daily.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public Integer getFkLogin() { | ||||||
|  |         return (Integer) get(3); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Record4 type implementation | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row4<YearToSecond, String, String, Integer> fieldsRow() { | ||||||
|  |         return (Row4) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row4<YearToSecond, String, String, Integer> valuesRow() { | ||||||
|  |         return (Row4) super.valuesRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<YearToSecond> field1() { | ||||||
|  |         return VDaily.V_DAILY.WORKTIME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field2() { | ||||||
|  |         return VDaily.V_DAILY.DAY; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field3() { | ||||||
|  |         return VDaily.V_DAILY.LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Integer> field4() { | ||||||
|  |         return VDaily.V_DAILY.FK_LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond component1() { | ||||||
|  |         return getWorktime(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component2() { | ||||||
|  |         return getDay(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component3() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer component4() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond value1() { | ||||||
|  |         return getWorktime(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value2() { | ||||||
|  |         return getDay(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value3() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer value4() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDailyRecord value1(YearToSecond value) { | ||||||
|  |         setWorktime(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDailyRecord value2(String value) { | ||||||
|  |         setDay(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDailyRecord value3(String value) { | ||||||
|  |         setLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDailyRecord value4(Integer value) { | ||||||
|  |         setFkLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDailyRecord values(YearToSecond value1, String value2, String value3, Integer value4) { | ||||||
|  |         value1(value1); | ||||||
|  |         value2(value2); | ||||||
|  |         value3(value3); | ||||||
|  |         value4(value4); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Constructors | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached VDailyRecord | ||||||
|  |      */ | ||||||
|  |     public VDailyRecord() { | ||||||
|  |         super(VDaily.V_DAILY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached, initialised VDailyRecord | ||||||
|  |      */ | ||||||
|  |     public VDailyRecord(YearToSecond worktime, String day, String login, Integer fkLogin) { | ||||||
|  |         super(VDaily.V_DAILY); | ||||||
|  |  | ||||||
|  |         set(0, worktime); | ||||||
|  |         set(1, day); | ||||||
|  |         set(2, login); | ||||||
|  |         set(3, fkLogin); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,220 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaylimits; | ||||||
|  |  | ||||||
|  | import java.sql.Timestamp; | ||||||
|  | import java.time.OffsetDateTime; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.Record4; | ||||||
|  | import org.jooq.Row4; | ||||||
|  | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDaylimitsRecord extends TableRecordImpl<VDaylimitsRecord> implements Record4<Timestamp, OffsetDateTime, String, Integer> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = 1544678482; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daylimits.work_start</code>. | ||||||
|  |      */ | ||||||
|  |     public void setWorkStart(Timestamp value) { | ||||||
|  |         set(0, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daylimits.work_start</code>. | ||||||
|  |      */ | ||||||
|  |     public Timestamp getWorkStart() { | ||||||
|  |         return (Timestamp) get(0); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daylimits.work_end</code>. | ||||||
|  |      */ | ||||||
|  |     public void setWorkEnd(OffsetDateTime value) { | ||||||
|  |         set(1, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daylimits.work_end</code>. | ||||||
|  |      */ | ||||||
|  |     public OffsetDateTime getWorkEnd() { | ||||||
|  |         return (OffsetDateTime) get(1); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daylimits.day</code>. | ||||||
|  |      */ | ||||||
|  |     public void setDay(String value) { | ||||||
|  |         set(2, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daylimits.day</code>. | ||||||
|  |      */ | ||||||
|  |     public String getDay() { | ||||||
|  |         return (String) get(2); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daylimits.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setFkLogin(Integer value) { | ||||||
|  |         set(3, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daylimits.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public Integer getFkLogin() { | ||||||
|  |         return (Integer) get(3); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Record4 type implementation | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row4<Timestamp, OffsetDateTime, String, Integer> fieldsRow() { | ||||||
|  |         return (Row4) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row4<Timestamp, OffsetDateTime, String, Integer> valuesRow() { | ||||||
|  |         return (Row4) super.valuesRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Timestamp> field1() { | ||||||
|  |         return VDaylimits.V_DAYLIMITS.WORK_START; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<OffsetDateTime> field2() { | ||||||
|  |         return VDaylimits.V_DAYLIMITS.WORK_END; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field3() { | ||||||
|  |         return VDaylimits.V_DAYLIMITS.DAY; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Integer> field4() { | ||||||
|  |         return VDaylimits.V_DAYLIMITS.FK_LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Timestamp component1() { | ||||||
|  |         return getWorkStart(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public OffsetDateTime component2() { | ||||||
|  |         return getWorkEnd(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component3() { | ||||||
|  |         return getDay(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer component4() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Timestamp value1() { | ||||||
|  |         return getWorkStart(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public OffsetDateTime value2() { | ||||||
|  |         return getWorkEnd(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value3() { | ||||||
|  |         return getDay(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer value4() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaylimitsRecord value1(Timestamp value) { | ||||||
|  |         setWorkStart(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaylimitsRecord value2(OffsetDateTime value) { | ||||||
|  |         setWorkEnd(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaylimitsRecord value3(String value) { | ||||||
|  |         setDay(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaylimitsRecord value4(Integer value) { | ||||||
|  |         setFkLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaylimitsRecord values(Timestamp value1, OffsetDateTime value2, String value3, Integer value4) { | ||||||
|  |         value1(value1); | ||||||
|  |         value2(value2); | ||||||
|  |         value3(value3); | ||||||
|  |         value4(value4); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Constructors | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached VDaylimitsRecord | ||||||
|  |      */ | ||||||
|  |     public VDaylimitsRecord() { | ||||||
|  |         super(VDaylimits.V_DAYLIMITS); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached, initialised VDaylimitsRecord | ||||||
|  |      */ | ||||||
|  |     public VDaylimitsRecord(Timestamp workStart, OffsetDateTime workEnd, String day, Integer fkLogin) { | ||||||
|  |         super(VDaylimits.V_DAYLIMITS); | ||||||
|  |  | ||||||
|  |         set(0, workStart); | ||||||
|  |         set(1, workEnd); | ||||||
|  |         set(2, day); | ||||||
|  |         set(3, fkLogin); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,332 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDaysummary; | ||||||
|  |  | ||||||
|  | import java.sql.Timestamp; | ||||||
|  | import java.time.OffsetDateTime; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.Record7; | ||||||
|  | import org.jooq.Row7; | ||||||
|  | import org.jooq.impl.TableRecordImpl; | ||||||
|  | import org.jooq.types.YearToSecond; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDaysummaryRecord extends TableRecordImpl<VDaysummaryRecord> implements Record7<YearToSecond, YearToSecond, Timestamp, OffsetDateTime, String, String, Integer> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = -531239752; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daysummary.breaktime</code>. | ||||||
|  |      */ | ||||||
|  |     public void setBreaktime(YearToSecond value) { | ||||||
|  |         set(0, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daysummary.breaktime</code>. | ||||||
|  |      */ | ||||||
|  |     public YearToSecond getBreaktime() { | ||||||
|  |         return (YearToSecond) get(0); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daysummary.worktime</code>. | ||||||
|  |      */ | ||||||
|  |     public void setWorktime(YearToSecond value) { | ||||||
|  |         set(1, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daysummary.worktime</code>. | ||||||
|  |      */ | ||||||
|  |     public YearToSecond getWorktime() { | ||||||
|  |         return (YearToSecond) get(1); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daysummary.work_start</code>. | ||||||
|  |      */ | ||||||
|  |     public void setWorkStart(Timestamp value) { | ||||||
|  |         set(2, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daysummary.work_start</code>. | ||||||
|  |      */ | ||||||
|  |     public Timestamp getWorkStart() { | ||||||
|  |         return (Timestamp) get(2); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daysummary.work_end</code>. | ||||||
|  |      */ | ||||||
|  |     public void setWorkEnd(OffsetDateTime value) { | ||||||
|  |         set(3, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daysummary.work_end</code>. | ||||||
|  |      */ | ||||||
|  |     public OffsetDateTime getWorkEnd() { | ||||||
|  |         return (OffsetDateTime) get(3); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daysummary.day</code>. | ||||||
|  |      */ | ||||||
|  |     public void setDay(String value) { | ||||||
|  |         set(4, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daysummary.day</code>. | ||||||
|  |      */ | ||||||
|  |     public String getDay() { | ||||||
|  |         return (String) get(4); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daysummary.login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setLogin(String value) { | ||||||
|  |         set(5, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daysummary.login</code>. | ||||||
|  |      */ | ||||||
|  |     public String getLogin() { | ||||||
|  |         return (String) get(5); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_daysummary.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setFkLogin(Integer value) { | ||||||
|  |         set(6, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_daysummary.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public Integer getFkLogin() { | ||||||
|  |         return (Integer) get(6); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Record7 type implementation | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row7<YearToSecond, YearToSecond, Timestamp, OffsetDateTime, String, String, Integer> fieldsRow() { | ||||||
|  |         return (Row7) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row7<YearToSecond, YearToSecond, Timestamp, OffsetDateTime, String, String, Integer> valuesRow() { | ||||||
|  |         return (Row7) super.valuesRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<YearToSecond> field1() { | ||||||
|  |         return VDaysummary.V_DAYSUMMARY.BREAKTIME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<YearToSecond> field2() { | ||||||
|  |         return VDaysummary.V_DAYSUMMARY.WORKTIME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Timestamp> field3() { | ||||||
|  |         return VDaysummary.V_DAYSUMMARY.WORK_START; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<OffsetDateTime> field4() { | ||||||
|  |         return VDaysummary.V_DAYSUMMARY.WORK_END; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field5() { | ||||||
|  |         return VDaysummary.V_DAYSUMMARY.DAY; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field6() { | ||||||
|  |         return VDaysummary.V_DAYSUMMARY.LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Integer> field7() { | ||||||
|  |         return VDaysummary.V_DAYSUMMARY.FK_LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond component1() { | ||||||
|  |         return getBreaktime(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond component2() { | ||||||
|  |         return getWorktime(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Timestamp component3() { | ||||||
|  |         return getWorkStart(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public OffsetDateTime component4() { | ||||||
|  |         return getWorkEnd(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component5() { | ||||||
|  |         return getDay(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component6() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer component7() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond value1() { | ||||||
|  |         return getBreaktime(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond value2() { | ||||||
|  |         return getWorktime(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Timestamp value3() { | ||||||
|  |         return getWorkStart(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public OffsetDateTime value4() { | ||||||
|  |         return getWorkEnd(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value5() { | ||||||
|  |         return getDay(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value6() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer value7() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummaryRecord value1(YearToSecond value) { | ||||||
|  |         setBreaktime(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummaryRecord value2(YearToSecond value) { | ||||||
|  |         setWorktime(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummaryRecord value3(Timestamp value) { | ||||||
|  |         setWorkStart(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummaryRecord value4(OffsetDateTime value) { | ||||||
|  |         setWorkEnd(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummaryRecord value5(String value) { | ||||||
|  |         setDay(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummaryRecord value6(String value) { | ||||||
|  |         setLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummaryRecord value7(Integer value) { | ||||||
|  |         setFkLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDaysummaryRecord values(YearToSecond value1, YearToSecond value2, Timestamp value3, OffsetDateTime value4, String value5, String value6, Integer value7) { | ||||||
|  |         value1(value1); | ||||||
|  |         value2(value2); | ||||||
|  |         value3(value3); | ||||||
|  |         value4(value4); | ||||||
|  |         value5(value5); | ||||||
|  |         value6(value6); | ||||||
|  |         value7(value7); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Constructors | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached VDaysummaryRecord | ||||||
|  |      */ | ||||||
|  |     public VDaysummaryRecord() { | ||||||
|  |         super(VDaysummary.V_DAYSUMMARY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached, initialised VDaysummaryRecord | ||||||
|  |      */ | ||||||
|  |     public VDaysummaryRecord(YearToSecond breaktime, YearToSecond worktime, Timestamp workStart, OffsetDateTime workEnd, String day, String login, Integer fkLogin) { | ||||||
|  |         super(VDaysummary.V_DAYSUMMARY); | ||||||
|  |  | ||||||
|  |         set(0, breaktime); | ||||||
|  |         set(1, worktime); | ||||||
|  |         set(2, workStart); | ||||||
|  |         set(3, workEnd); | ||||||
|  |         set(4, day); | ||||||
|  |         set(5, login); | ||||||
|  |         set(6, fkLogin); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,367 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDone; | ||||||
|  |  | ||||||
|  | import java.sql.Timestamp; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.Record8; | ||||||
|  | import org.jooq.Row8; | ||||||
|  | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDoneRecord extends TableRecordImpl<VDoneRecord> implements Record8<Integer, Integer, Timestamp, Timestamp, String, String, String, String> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = -311533849; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_done.fk_done</code>. | ||||||
|  |      */ | ||||||
|  |     public void setFkDone(Integer value) { | ||||||
|  |         set(0, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_done.fk_done</code>. | ||||||
|  |      */ | ||||||
|  |     public Integer getFkDone() { | ||||||
|  |         return (Integer) get(0); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_done.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setFkLogin(Integer value) { | ||||||
|  |         set(1, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_done.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public Integer getFkLogin() { | ||||||
|  |         return (Integer) get(1); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_done.time_from</code>. | ||||||
|  |      */ | ||||||
|  |     public void setTimeFrom(Timestamp value) { | ||||||
|  |         set(2, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_done.time_from</code>. | ||||||
|  |      */ | ||||||
|  |     public Timestamp getTimeFrom() { | ||||||
|  |         return (Timestamp) get(2); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_done.time_until</code>. | ||||||
|  |      */ | ||||||
|  |     public void setTimeUntil(Timestamp value) { | ||||||
|  |         set(3, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_done.time_until</code>. | ||||||
|  |      */ | ||||||
|  |     public Timestamp getTimeUntil() { | ||||||
|  |         return (Timestamp) get(3); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_done.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setProjectName(String value) { | ||||||
|  |         set(4, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_done.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getProjectName() { | ||||||
|  |         return (String) get(4); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_done.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setModuleName(String value) { | ||||||
|  |         set(5, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_done.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getModuleName() { | ||||||
|  |         return (String) get(5); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_done.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setJobName(String value) { | ||||||
|  |         set(6, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_done.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getJobName() { | ||||||
|  |         return (String) get(6); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_done.login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setLogin(String value) { | ||||||
|  |         set(7, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_done.login</code>. | ||||||
|  |      */ | ||||||
|  |     public String getLogin() { | ||||||
|  |         return (String) get(7); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Record8 type implementation | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row8<Integer, Integer, Timestamp, Timestamp, String, String, String, String> fieldsRow() { | ||||||
|  |         return (Row8) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row8<Integer, Integer, Timestamp, Timestamp, String, String, String, String> valuesRow() { | ||||||
|  |         return (Row8) super.valuesRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Integer> field1() { | ||||||
|  |         return VDone.V_DONE.FK_DONE; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Integer> field2() { | ||||||
|  |         return VDone.V_DONE.FK_LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Timestamp> field3() { | ||||||
|  |         return VDone.V_DONE.TIME_FROM; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Timestamp> field4() { | ||||||
|  |         return VDone.V_DONE.TIME_UNTIL; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field5() { | ||||||
|  |         return VDone.V_DONE.PROJECT_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field6() { | ||||||
|  |         return VDone.V_DONE.MODULE_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field7() { | ||||||
|  |         return VDone.V_DONE.JOB_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field8() { | ||||||
|  |         return VDone.V_DONE.LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer component1() { | ||||||
|  |         return getFkDone(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer component2() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Timestamp component3() { | ||||||
|  |         return getTimeFrom(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Timestamp component4() { | ||||||
|  |         return getTimeUntil(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component5() { | ||||||
|  |         return getProjectName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component6() { | ||||||
|  |         return getModuleName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component7() { | ||||||
|  |         return getJobName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component8() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer value1() { | ||||||
|  |         return getFkDone(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer value2() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Timestamp value3() { | ||||||
|  |         return getTimeFrom(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Timestamp value4() { | ||||||
|  |         return getTimeUntil(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value5() { | ||||||
|  |         return getProjectName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value6() { | ||||||
|  |         return getModuleName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value7() { | ||||||
|  |         return getJobName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value8() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord value1(Integer value) { | ||||||
|  |         setFkDone(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord value2(Integer value) { | ||||||
|  |         setFkLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord value3(Timestamp value) { | ||||||
|  |         setTimeFrom(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord value4(Timestamp value) { | ||||||
|  |         setTimeUntil(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord value5(String value) { | ||||||
|  |         setProjectName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord value6(String value) { | ||||||
|  |         setModuleName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord value7(String value) { | ||||||
|  |         setJobName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord value8(String value) { | ||||||
|  |         setLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDoneRecord values(Integer value1, Integer value2, Timestamp value3, Timestamp value4, String value5, String value6, String value7, String value8) { | ||||||
|  |         value1(value1); | ||||||
|  |         value2(value2); | ||||||
|  |         value3(value3); | ||||||
|  |         value4(value4); | ||||||
|  |         value5(value5); | ||||||
|  |         value6(value6); | ||||||
|  |         value7(value7); | ||||||
|  |         value8(value8); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Constructors | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached VDoneRecord | ||||||
|  |      */ | ||||||
|  |     public VDoneRecord() { | ||||||
|  |         super(VDone.V_DONE); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached, initialised VDoneRecord | ||||||
|  |      */ | ||||||
|  |     public VDoneRecord(Integer fkDone, Integer fkLogin, Timestamp timeFrom, Timestamp timeUntil, String projectName, String moduleName, String jobName, String login) { | ||||||
|  |         super(VDone.V_DONE); | ||||||
|  |  | ||||||
|  |         set(0, fkDone); | ||||||
|  |         set(1, fkLogin); | ||||||
|  |         set(2, timeFrom); | ||||||
|  |         set(3, timeUntil); | ||||||
|  |         set(4, projectName); | ||||||
|  |         set(5, moduleName); | ||||||
|  |         set(6, jobName); | ||||||
|  |         set(7, login); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,329 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VDuration; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.Record7; | ||||||
|  | import org.jooq.Row7; | ||||||
|  | import org.jooq.impl.TableRecordImpl; | ||||||
|  | import org.jooq.types.YearToSecond; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VDurationRecord extends TableRecordImpl<VDurationRecord> implements Record7<String, YearToSecond, String, String, String, String, Integer> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = 794239622; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_duration.day</code>. | ||||||
|  |      */ | ||||||
|  |     public void setDay(String value) { | ||||||
|  |         set(0, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_duration.day</code>. | ||||||
|  |      */ | ||||||
|  |     public String getDay() { | ||||||
|  |         return (String) get(0); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_duration.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public void setDuration(YearToSecond value) { | ||||||
|  |         set(1, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_duration.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public YearToSecond getDuration() { | ||||||
|  |         return (YearToSecond) get(1); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_duration.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setProjectName(String value) { | ||||||
|  |         set(2, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_duration.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getProjectName() { | ||||||
|  |         return (String) get(2); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_duration.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setModuleName(String value) { | ||||||
|  |         set(3, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_duration.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getModuleName() { | ||||||
|  |         return (String) get(3); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_duration.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setJobName(String value) { | ||||||
|  |         set(4, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_duration.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getJobName() { | ||||||
|  |         return (String) get(4); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_duration.login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setLogin(String value) { | ||||||
|  |         set(5, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_duration.login</code>. | ||||||
|  |      */ | ||||||
|  |     public String getLogin() { | ||||||
|  |         return (String) get(5); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_duration.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setFkLogin(Integer value) { | ||||||
|  |         set(6, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_duration.fk_login</code>. | ||||||
|  |      */ | ||||||
|  |     public Integer getFkLogin() { | ||||||
|  |         return (Integer) get(6); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Record7 type implementation | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row7<String, YearToSecond, String, String, String, String, Integer> fieldsRow() { | ||||||
|  |         return (Row7) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row7<String, YearToSecond, String, String, String, String, Integer> valuesRow() { | ||||||
|  |         return (Row7) super.valuesRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field1() { | ||||||
|  |         return VDuration.V_DURATION.DAY; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<YearToSecond> field2() { | ||||||
|  |         return VDuration.V_DURATION.DURATION; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field3() { | ||||||
|  |         return VDuration.V_DURATION.PROJECT_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field4() { | ||||||
|  |         return VDuration.V_DURATION.MODULE_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field5() { | ||||||
|  |         return VDuration.V_DURATION.JOB_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field6() { | ||||||
|  |         return VDuration.V_DURATION.LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Integer> field7() { | ||||||
|  |         return VDuration.V_DURATION.FK_LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component1() { | ||||||
|  |         return getDay(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond component2() { | ||||||
|  |         return getDuration(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component3() { | ||||||
|  |         return getProjectName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component4() { | ||||||
|  |         return getModuleName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component5() { | ||||||
|  |         return getJobName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component6() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer component7() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value1() { | ||||||
|  |         return getDay(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond value2() { | ||||||
|  |         return getDuration(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value3() { | ||||||
|  |         return getProjectName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value4() { | ||||||
|  |         return getModuleName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value5() { | ||||||
|  |         return getJobName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value6() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Integer value7() { | ||||||
|  |         return getFkLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDurationRecord value1(String value) { | ||||||
|  |         setDay(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDurationRecord value2(YearToSecond value) { | ||||||
|  |         setDuration(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDurationRecord value3(String value) { | ||||||
|  |         setProjectName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDurationRecord value4(String value) { | ||||||
|  |         setModuleName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDurationRecord value5(String value) { | ||||||
|  |         setJobName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDurationRecord value6(String value) { | ||||||
|  |         setLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDurationRecord value7(Integer value) { | ||||||
|  |         setFkLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VDurationRecord values(String value1, YearToSecond value2, String value3, String value4, String value5, String value6, Integer value7) { | ||||||
|  |         value1(value1); | ||||||
|  |         value2(value2); | ||||||
|  |         value3(value3); | ||||||
|  |         value4(value4); | ||||||
|  |         value5(value5); | ||||||
|  |         value6(value6); | ||||||
|  |         value7(value7); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Constructors | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached VDurationRecord | ||||||
|  |      */ | ||||||
|  |     public VDurationRecord() { | ||||||
|  |         super(VDuration.V_DURATION); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached, initialised VDurationRecord | ||||||
|  |      */ | ||||||
|  |     public VDurationRecord(String day, YearToSecond duration, String projectName, String moduleName, String jobName, String login, Integer fkLogin) { | ||||||
|  |         super(VDuration.V_DURATION); | ||||||
|  |  | ||||||
|  |         set(0, day); | ||||||
|  |         set(1, duration); | ||||||
|  |         set(2, projectName); | ||||||
|  |         set(3, moduleName); | ||||||
|  |         set(4, jobName); | ||||||
|  |         set(5, login); | ||||||
|  |         set(6, fkLogin); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,294 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VHamster; | ||||||
|  |  | ||||||
|  | import java.sql.Date; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.Record6; | ||||||
|  | import org.jooq.Row6; | ||||||
|  | import org.jooq.impl.TableRecordImpl; | ||||||
|  | import org.jooq.types.YearToSecond; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VHamsterRecord extends TableRecordImpl<VHamsterRecord> implements Record6<Date, YearToSecond, String, String, String, String> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = 1475398201; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamster.workday</code>. | ||||||
|  |      */ | ||||||
|  |     public void setWorkday(Date value) { | ||||||
|  |         set(0, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamster.workday</code>. | ||||||
|  |      */ | ||||||
|  |     public Date getWorkday() { | ||||||
|  |         return (Date) get(0); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamster.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public void setDuration(YearToSecond value) { | ||||||
|  |         set(1, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamster.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public YearToSecond getDuration() { | ||||||
|  |         return (YearToSecond) get(1); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamster.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setProjectName(String value) { | ||||||
|  |         set(2, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamster.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getProjectName() { | ||||||
|  |         return (String) get(2); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamster.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setModuleName(String value) { | ||||||
|  |         set(3, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamster.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getModuleName() { | ||||||
|  |         return (String) get(3); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamster.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setJobName(String value) { | ||||||
|  |         set(4, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamster.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getJobName() { | ||||||
|  |         return (String) get(4); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamster.login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setLogin(String value) { | ||||||
|  |         set(5, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamster.login</code>. | ||||||
|  |      */ | ||||||
|  |     public String getLogin() { | ||||||
|  |         return (String) get(5); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Record6 type implementation | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<Date, YearToSecond, String, String, String, String> fieldsRow() { | ||||||
|  |         return (Row6) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<Date, YearToSecond, String, String, String, String> valuesRow() { | ||||||
|  |         return (Row6) super.valuesRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Date> field1() { | ||||||
|  |         return VHamster.V_HAMSTER.WORKDAY; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<YearToSecond> field2() { | ||||||
|  |         return VHamster.V_HAMSTER.DURATION; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field3() { | ||||||
|  |         return VHamster.V_HAMSTER.PROJECT_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field4() { | ||||||
|  |         return VHamster.V_HAMSTER.MODULE_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field5() { | ||||||
|  |         return VHamster.V_HAMSTER.JOB_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field6() { | ||||||
|  |         return VHamster.V_HAMSTER.LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Date component1() { | ||||||
|  |         return getWorkday(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond component2() { | ||||||
|  |         return getDuration(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component3() { | ||||||
|  |         return getProjectName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component4() { | ||||||
|  |         return getModuleName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component5() { | ||||||
|  |         return getJobName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component6() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Date value1() { | ||||||
|  |         return getWorkday(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public YearToSecond value2() { | ||||||
|  |         return getDuration(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value3() { | ||||||
|  |         return getProjectName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value4() { | ||||||
|  |         return getModuleName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value5() { | ||||||
|  |         return getJobName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value6() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamsterRecord value1(Date value) { | ||||||
|  |         setWorkday(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamsterRecord value2(YearToSecond value) { | ||||||
|  |         setDuration(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamsterRecord value3(String value) { | ||||||
|  |         setProjectName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamsterRecord value4(String value) { | ||||||
|  |         setModuleName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamsterRecord value5(String value) { | ||||||
|  |         setJobName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamsterRecord value6(String value) { | ||||||
|  |         setLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamsterRecord values(Date value1, YearToSecond value2, String value3, String value4, String value5, String value6) { | ||||||
|  |         value1(value1); | ||||||
|  |         value2(value2); | ||||||
|  |         value3(value3); | ||||||
|  |         value4(value4); | ||||||
|  |         value5(value5); | ||||||
|  |         value6(value6); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Constructors | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached VHamsterRecord | ||||||
|  |      */ | ||||||
|  |     public VHamsterRecord() { | ||||||
|  |         super(VHamster.V_HAMSTER); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached, initialised VHamsterRecord | ||||||
|  |      */ | ||||||
|  |     public VHamsterRecord(Date workday, YearToSecond duration, String projectName, String moduleName, String jobName, String login) { | ||||||
|  |         super(VHamster.V_HAMSTER); | ||||||
|  |  | ||||||
|  |         set(0, workday); | ||||||
|  |         set(1, duration); | ||||||
|  |         set(2, projectName); | ||||||
|  |         set(3, moduleName); | ||||||
|  |         set(4, jobName); | ||||||
|  |         set(5, login); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -0,0 +1,293 @@ | |||||||
|  | /* | ||||||
|  |  * This file is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VHamstersummary; | ||||||
|  |  | ||||||
|  | import java.sql.Date; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  | import org.jooq.Field; | ||||||
|  | import org.jooq.Record6; | ||||||
|  | import org.jooq.Row6; | ||||||
|  | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * This class is generated by jOOQ. | ||||||
|  |  */ | ||||||
|  | @Generated( | ||||||
|  |     value = { | ||||||
|  |         "http://www.jooq.org", | ||||||
|  |         "jOOQ version:3.12.1" | ||||||
|  |     }, | ||||||
|  |     comments = "This class is generated by jOOQ" | ||||||
|  | ) | ||||||
|  | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
|  | public class VHamstersummaryRecord extends TableRecordImpl<VHamstersummaryRecord> implements Record6<Date, String, String, String, String, String> { | ||||||
|  |  | ||||||
|  |     private static final long serialVersionUID = 742713887; | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamstersummary.workday</code>. | ||||||
|  |      */ | ||||||
|  |     public void setWorkday(Date value) { | ||||||
|  |         set(0, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamstersummary.workday</code>. | ||||||
|  |      */ | ||||||
|  |     public Date getWorkday() { | ||||||
|  |         return (Date) get(0); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamstersummary.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public void setDuration(String value) { | ||||||
|  |         set(1, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamstersummary.duration</code>. | ||||||
|  |      */ | ||||||
|  |     public String getDuration() { | ||||||
|  |         return (String) get(1); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamstersummary.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setProjectName(String value) { | ||||||
|  |         set(2, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamstersummary.project_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getProjectName() { | ||||||
|  |         return (String) get(2); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamstersummary.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setModuleName(String value) { | ||||||
|  |         set(3, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamstersummary.module_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getModuleName() { | ||||||
|  |         return (String) get(3); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamstersummary.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public void setJobName(String value) { | ||||||
|  |         set(4, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamstersummary.job_name</code>. | ||||||
|  |      */ | ||||||
|  |     public String getJobName() { | ||||||
|  |         return (String) get(4); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Setter for <code>done.v_hamstersummary.login</code>. | ||||||
|  |      */ | ||||||
|  |     public void setLogin(String value) { | ||||||
|  |         set(5, value); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Getter for <code>done.v_hamstersummary.login</code>. | ||||||
|  |      */ | ||||||
|  |     public String getLogin() { | ||||||
|  |         return (String) get(5); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Record6 type implementation | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<Date, String, String, String, String, String> fieldsRow() { | ||||||
|  |         return (Row6) super.fieldsRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<Date, String, String, String, String, String> valuesRow() { | ||||||
|  |         return (Row6) super.valuesRow(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<Date> field1() { | ||||||
|  |         return VHamstersummary.V_HAMSTERSUMMARY.WORKDAY; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field2() { | ||||||
|  |         return VHamstersummary.V_HAMSTERSUMMARY.DURATION; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field3() { | ||||||
|  |         return VHamstersummary.V_HAMSTERSUMMARY.PROJECT_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field4() { | ||||||
|  |         return VHamstersummary.V_HAMSTERSUMMARY.MODULE_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field5() { | ||||||
|  |         return VHamstersummary.V_HAMSTERSUMMARY.JOB_NAME; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Field<String> field6() { | ||||||
|  |         return VHamstersummary.V_HAMSTERSUMMARY.LOGIN; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Date component1() { | ||||||
|  |         return getWorkday(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component2() { | ||||||
|  |         return getDuration(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component3() { | ||||||
|  |         return getProjectName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component4() { | ||||||
|  |         return getModuleName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component5() { | ||||||
|  |         return getJobName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String component6() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Date value1() { | ||||||
|  |         return getWorkday(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value2() { | ||||||
|  |         return getDuration(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value3() { | ||||||
|  |         return getProjectName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value4() { | ||||||
|  |         return getModuleName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value5() { | ||||||
|  |         return getJobName(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public String value6() { | ||||||
|  |         return getLogin(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummaryRecord value1(Date value) { | ||||||
|  |         setWorkday(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummaryRecord value2(String value) { | ||||||
|  |         setDuration(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummaryRecord value3(String value) { | ||||||
|  |         setProjectName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummaryRecord value4(String value) { | ||||||
|  |         setModuleName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummaryRecord value5(String value) { | ||||||
|  |         setJobName(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummaryRecord value6(String value) { | ||||||
|  |         setLogin(value); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public VHamstersummaryRecord values(Date value1, String value2, String value3, String value4, String value5, String value6) { | ||||||
|  |         value1(value1); | ||||||
|  |         value2(value2); | ||||||
|  |         value3(value3); | ||||||
|  |         value4(value4); | ||||||
|  |         value5(value5); | ||||||
|  |         value6(value6); | ||||||
|  |         return this; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Constructors | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached VHamstersummaryRecord | ||||||
|  |      */ | ||||||
|  |     public VHamstersummaryRecord() { | ||||||
|  |         super(VHamstersummary.V_HAMSTERSUMMARY); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Create a detached, initialised VHamstersummaryRecord | ||||||
|  |      */ | ||||||
|  |     public VHamstersummaryRecord(Date workday, String duration, String projectName, String moduleName, String jobName, String login) { | ||||||
|  |         super(VHamstersummary.V_HAMSTERSUMMARY); | ||||||
|  |  | ||||||
|  |         set(0, workday); | ||||||
|  |         set(1, duration); | ||||||
|  |         set(2, projectName); | ||||||
|  |         set(3, moduleName); | ||||||
|  |         set(4, jobName); | ||||||
|  |         set(5, login); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables.records; | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VTasklist; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Field; | import org.jooq.Field; | ||||||
| @@ -11,8 +13,6 @@ import org.jooq.Record6; | |||||||
| import org.jooq.Row6; | import org.jooq.Row6; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.VTasklist; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -20,14 +20,14 @@ import de.jottyfan.timetrack.db.done.tables.VTasklist; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class VTasklistRecord extends TableRecordImpl<VTasklistRecord> implements Record6<String, String, String, String, String, Integer> { | public class VTasklistRecord extends TableRecordImpl<VTasklistRecord> implements Record6<String, String, String, String, String, Integer> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1829630400; |     private static final long serialVersionUID = -1505579480; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>done.v_tasklist.day</code>. |      * Setter for <code>done.v_tasklist.day</code>. | ||||||
| @@ -117,223 +117,142 @@ public class VTasklistRecord extends TableRecordImpl<VTasklistRecord> implements | |||||||
|     // Record6 type implementation |     // Record6 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row6<String, String, String, String, String, Integer> fieldsRow() { |     public Row6<String, String, String, String, String, Integer> fieldsRow() { | ||||||
|         return (Row6) super.fieldsRow(); |         return (Row6) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row6<String, String, String, String, String, Integer> valuesRow() { |     public Row6<String, String, String, String, String, Integer> valuesRow() { | ||||||
|         return (Row6) super.valuesRow(); |         return (Row6) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field1() { |     public Field<String> field1() { | ||||||
|         return VTasklist.V_TASKLIST.DAY; |         return VTasklist.V_TASKLIST.DAY; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field2() { |     public Field<String> field2() { | ||||||
|         return VTasklist.V_TASKLIST.DURATION; |         return VTasklist.V_TASKLIST.DURATION; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return VTasklist.V_TASKLIST.PROJECT_NAME; |         return VTasklist.V_TASKLIST.PROJECT_NAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field4() { |     public Field<String> field4() { | ||||||
|         return VTasklist.V_TASKLIST.MODULE_NAME; |         return VTasklist.V_TASKLIST.MODULE_NAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field5() { |     public Field<String> field5() { | ||||||
|         return VTasklist.V_TASKLIST.JOB_NAME; |         return VTasklist.V_TASKLIST.JOB_NAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field6() { |     public Field<Integer> field6() { | ||||||
|         return VTasklist.V_TASKLIST.FK_LOGIN; |         return VTasklist.V_TASKLIST.FK_LOGIN; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component1() { |     public String component1() { | ||||||
|         return getDay(); |         return getDay(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component2() { |     public String component2() { | ||||||
|         return getDuration(); |         return getDuration(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getProjectName(); |         return getProjectName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component4() { |     public String component4() { | ||||||
|         return getModuleName(); |         return getModuleName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component5() { |     public String component5() { | ||||||
|         return getJobName(); |         return getJobName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component6() { |     public Integer component6() { | ||||||
|         return getFkLogin(); |         return getFkLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value1() { |     public String value1() { | ||||||
|         return getDay(); |         return getDay(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value2() { |     public String value2() { | ||||||
|         return getDuration(); |         return getDuration(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getProjectName(); |         return getProjectName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value4() { |     public String value4() { | ||||||
|         return getModuleName(); |         return getModuleName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value5() { |     public String value5() { | ||||||
|         return getJobName(); |         return getJobName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value6() { |     public Integer value6() { | ||||||
|         return getFkLogin(); |         return getFkLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklistRecord value1(String value) { |     public VTasklistRecord value1(String value) { | ||||||
|         setDay(value); |         setDay(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklistRecord value2(String value) { |     public VTasklistRecord value2(String value) { | ||||||
|         setDuration(value); |         setDuration(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklistRecord value3(String value) { |     public VTasklistRecord value3(String value) { | ||||||
|         setProjectName(value); |         setProjectName(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklistRecord value4(String value) { |     public VTasklistRecord value4(String value) { | ||||||
|         setModuleName(value); |         setModuleName(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklistRecord value5(String value) { |     public VTasklistRecord value5(String value) { | ||||||
|         setJobName(value); |         setJobName(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklistRecord value6(Integer value) { |     public VTasklistRecord value6(Integer value) { | ||||||
|         setFkLogin(value); |         setFkLogin(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTasklistRecord values(String value1, String value2, String value3, String value4, String value5, Integer value6) { |     public VTasklistRecord values(String value1, String value2, String value3, String value4, String value5, Integer value6) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.done.tables.records; | package de.jottyfan.timetrack.db.done.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.done.tables.VTotalofday; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Field; | import org.jooq.Field; | ||||||
| @@ -11,8 +13,6 @@ import org.jooq.Record6; | |||||||
| import org.jooq.Row6; | import org.jooq.Row6; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.done.tables.VTotalofday; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -20,14 +20,14 @@ import de.jottyfan.timetrack.db.done.tables.VTotalofday; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class VTotalofdayRecord extends TableRecordImpl<VTotalofdayRecord> implements Record6<String, String, String, String, String, Integer> { | public class VTotalofdayRecord extends TableRecordImpl<VTotalofdayRecord> implements Record6<String, String, String, String, String, Integer> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1188298937; |     private static final long serialVersionUID = -383740435; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>done.v_totalofday.breaktime</code>. |      * Setter for <code>done.v_totalofday.breaktime</code>. | ||||||
| @@ -117,223 +117,142 @@ public class VTotalofdayRecord extends TableRecordImpl<VTotalofdayRecord> implem | |||||||
|     // Record6 type implementation |     // Record6 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row6<String, String, String, String, String, Integer> fieldsRow() { |     public Row6<String, String, String, String, String, Integer> fieldsRow() { | ||||||
|         return (Row6) super.fieldsRow(); |         return (Row6) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row6<String, String, String, String, String, Integer> valuesRow() { |     public Row6<String, String, String, String, String, Integer> valuesRow() { | ||||||
|         return (Row6) super.valuesRow(); |         return (Row6) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field1() { |     public Field<String> field1() { | ||||||
|         return VTotalofday.V_TOTALOFDAY.BREAKTIME; |         return VTotalofday.V_TOTALOFDAY.BREAKTIME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field2() { |     public Field<String> field2() { | ||||||
|         return VTotalofday.V_TOTALOFDAY.WORKTIME; |         return VTotalofday.V_TOTALOFDAY.WORKTIME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return VTotalofday.V_TOTALOFDAY.STARTTIME; |         return VTotalofday.V_TOTALOFDAY.STARTTIME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field4() { |     public Field<String> field4() { | ||||||
|         return VTotalofday.V_TOTALOFDAY.ENDTIME; |         return VTotalofday.V_TOTALOFDAY.ENDTIME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field5() { |     public Field<String> field5() { | ||||||
|         return VTotalofday.V_TOTALOFDAY.DAY; |         return VTotalofday.V_TOTALOFDAY.DAY; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field6() { |     public Field<Integer> field6() { | ||||||
|         return VTotalofday.V_TOTALOFDAY.FK_LOGIN; |         return VTotalofday.V_TOTALOFDAY.FK_LOGIN; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component1() { |     public String component1() { | ||||||
|         return getBreaktime(); |         return getBreaktime(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component2() { |     public String component2() { | ||||||
|         return getWorktime(); |         return getWorktime(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getStarttime(); |         return getStarttime(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component4() { |     public String component4() { | ||||||
|         return getEndtime(); |         return getEndtime(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component5() { |     public String component5() { | ||||||
|         return getDay(); |         return getDay(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component6() { |     public Integer component6() { | ||||||
|         return getFkLogin(); |         return getFkLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value1() { |     public String value1() { | ||||||
|         return getBreaktime(); |         return getBreaktime(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value2() { |     public String value2() { | ||||||
|         return getWorktime(); |         return getWorktime(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getStarttime(); |         return getStarttime(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value4() { |     public String value4() { | ||||||
|         return getEndtime(); |         return getEndtime(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value5() { |     public String value5() { | ||||||
|         return getDay(); |         return getDay(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value6() { |     public Integer value6() { | ||||||
|         return getFkLogin(); |         return getFkLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofdayRecord value1(String value) { |     public VTotalofdayRecord value1(String value) { | ||||||
|         setBreaktime(value); |         setBreaktime(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofdayRecord value2(String value) { |     public VTotalofdayRecord value2(String value) { | ||||||
|         setWorktime(value); |         setWorktime(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofdayRecord value3(String value) { |     public VTotalofdayRecord value3(String value) { | ||||||
|         setStarttime(value); |         setStarttime(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofdayRecord value4(String value) { |     public VTotalofdayRecord value4(String value) { | ||||||
|         setEndtime(value); |         setEndtime(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofdayRecord value5(String value) { |     public VTotalofdayRecord value5(String value) { | ||||||
|         setDay(value); |         setDay(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofdayRecord value6(Integer value) { |     public VTotalofdayRecord value6(Integer value) { | ||||||
|         setFkLogin(value); |         setFkLogin(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VTotalofdayRecord values(String value1, String value2, String value3, String value4, String value5, Integer value6) { |     public VTotalofdayRecord values(String value1, String value2, String value3, String value4, String value5, Integer value6) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,14 +4,14 @@ | |||||||
| package de.jottyfan.timetrack.db.note; | package de.jottyfan.timetrack.db.note; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.note.tables.TNote; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.OrderField; | import org.jooq.OrderField; | ||||||
| import org.jooq.impl.Internal; | import org.jooq.impl.Internal; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.note.tables.TNote; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * A class modelling indexes of tables of the <code>note</code> schema. |  * A class modelling indexes of tables of the <code>note</code> schema. | ||||||
| @@ -19,7 +19,7 @@ import de.jottyfan.timetrack.db.note.tables.TNote; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -4,6 +4,9 @@ | |||||||
| package de.jottyfan.timetrack.db.note; | package de.jottyfan.timetrack.db.note; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.DefaultCatalog; | ||||||
|  | import de.jottyfan.timetrack.db.note.tables.TNote; | ||||||
|  |  | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -14,9 +17,6 @@ import org.jooq.Catalog; | |||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.impl.SchemaImpl; | import org.jooq.impl.SchemaImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.DefaultCatalog; |  | ||||||
| import de.jottyfan.timetrack.db.note.tables.TNote; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -24,14 +24,14 @@ import de.jottyfan.timetrack.db.note.tables.TNote; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class Note extends SchemaImpl { | public class Note extends SchemaImpl { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -1806178126; |     private static final long serialVersionUID = -1212898548; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>note</code> |      * The reference instance of <code>note</code> | ||||||
| @@ -51,9 +51,6 @@ public class Note extends SchemaImpl { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Catalog getCatalog() { |     public Catalog getCatalog() { | ||||||
|         return DefaultCatalog.DEFAULT_CATALOG; |         return DefaultCatalog.DEFAULT_CATALOG; | ||||||
|   | |||||||
| @@ -4,10 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.note; | package de.jottyfan.timetrack.db.note; | ||||||
|  |  | ||||||
|  |  | ||||||
| import javax.annotation.Generated; |  | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.note.tables.TNote; | import de.jottyfan.timetrack.db.note.tables.TNote; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Convenience access to all tables in note |  * Convenience access to all tables in note | ||||||
| @@ -15,7 +15,7 @@ import de.jottyfan.timetrack.db.note.tables.TNote; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @@ -25,5 +25,5 @@ public class Tables { | |||||||
|     /** |     /** | ||||||
|      * The table <code>note.t_note</code>. |      * The table <code>note.t_note</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TNote T_NOTE = de.jottyfan.timetrack.db.note.tables.TNote.T_NOTE; |     public static final TNote T_NOTE = TNote.T_NOTE; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,14 +4,14 @@ | |||||||
| package de.jottyfan.timetrack.db.note.enums; | package de.jottyfan.timetrack.db.note.enums; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.note.Note; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Catalog; | import org.jooq.Catalog; | ||||||
| import org.jooq.EnumType; | import org.jooq.EnumType; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.note.Note; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -19,7 +19,7 @@ import de.jottyfan.timetrack.db.note.Note; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @@ -48,33 +48,21 @@ public enum EnumCategory implements EnumType { | |||||||
|         this.literal = literal; |         this.literal = literal; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Catalog getCatalog() { |     public Catalog getCatalog() { | ||||||
|         return getSchema() == null ? null : getSchema().getCatalog(); |         return getSchema() == null ? null : getSchema().getCatalog(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Note.NOTE; |         return Note.NOTE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String getName() { |     public String getName() { | ||||||
|         return "enum_category"; |         return "enum_category"; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String getLiteral() { |     public String getLiteral() { | ||||||
|         return literal; |         return literal; | ||||||
|   | |||||||
| @@ -4,14 +4,14 @@ | |||||||
| package de.jottyfan.timetrack.db.note.enums; | package de.jottyfan.timetrack.db.note.enums; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.note.Note; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Catalog; | import org.jooq.Catalog; | ||||||
| import org.jooq.EnumType; | import org.jooq.EnumType; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.note.Note; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -19,7 +19,7 @@ import de.jottyfan.timetrack.db.note.Note; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @@ -36,33 +36,21 @@ public enum EnumNotetype implements EnumType { | |||||||
|         this.literal = literal; |         this.literal = literal; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Catalog getCatalog() { |     public Catalog getCatalog() { | ||||||
|         return getSchema() == null ? null : getSchema().getCatalog(); |         return getSchema() == null ? null : getSchema().getCatalog(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Note.NOTE; |         return Note.NOTE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String getName() { |     public String getName() { | ||||||
|         return "enum_notetype"; |         return "enum_notetype"; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String getLiteral() { |     public String getLiteral() { | ||||||
|         return literal; |         return literal; | ||||||
|   | |||||||
| @@ -4,6 +4,12 @@ | |||||||
| package de.jottyfan.timetrack.db.note.tables; | package de.jottyfan.timetrack.db.note.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.note.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.note.Note; | ||||||
|  | import de.jottyfan.timetrack.db.note.enums.EnumCategory; | ||||||
|  | import de.jottyfan.timetrack.db.note.enums.EnumNotetype; | ||||||
|  | import de.jottyfan.timetrack.db.note.tables.records.TNoteRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -15,18 +21,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row6; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.note.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.note.Note; |  | ||||||
| import de.jottyfan.timetrack.db.note.enums.EnumCategory; |  | ||||||
| import de.jottyfan.timetrack.db.note.enums.EnumNotetype; |  | ||||||
| import de.jottyfan.timetrack.db.note.tables.records.TNoteRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -34,14 +35,14 @@ import de.jottyfan.timetrack.db.note.tables.records.TNoteRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TNote extends TableImpl<TNoteRecord> { | public class TNote extends TableImpl<TNoteRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -505401304; |     private static final long serialVersionUID = 338893308; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>note.t_note</code> |      * The reference instance of <code>note.t_note</code> | ||||||
| @@ -59,32 +60,32 @@ public class TNote extends TableImpl<TNoteRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>note.t_note.pk</code>. |      * The column <code>note.t_note.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TNoteRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TNoteRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>note.t_note.title</code>. |      * The column <code>note.t_note.title</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TNoteRecord, String> TITLE = createField("title", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<TNoteRecord, String> TITLE = createField(DSL.name("title"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>note.t_note.category</code>. |      * The column <code>note.t_note.category</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TNoteRecord, EnumCategory> CATEGORY = createField("category", org.jooq.impl.SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.timetrack.db.note.enums.EnumCategory.class), this, ""); |     public final TableField<TNoteRecord, EnumCategory> CATEGORY = createField(DSL.name("category"), org.jooq.impl.SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.timetrack.db.note.enums.EnumCategory.class), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>note.t_note.notetype</code>. |      * The column <code>note.t_note.notetype</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TNoteRecord, EnumNotetype> NOTETYPE = createField("notetype", org.jooq.impl.SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.timetrack.db.note.enums.EnumNotetype.class), this, ""); |     public final TableField<TNoteRecord, EnumNotetype> NOTETYPE = createField(DSL.name("notetype"), org.jooq.impl.SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.timetrack.db.note.enums.EnumNotetype.class), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>note.t_note.content</code>. |      * The column <code>note.t_note.content</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TNoteRecord, String> CONTENT = createField("content", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<TNoteRecord, String> CONTENT = createField(DSL.name("content"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>note.t_note.lastchange</code>. |      * The column <code>note.t_note.lastchange</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TNoteRecord, Timestamp> LASTCHANGE = createField("lastchange", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); |     public final TableField<TNoteRecord, Timestamp> LASTCHANGE = createField(DSL.name("lastchange"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>note.t_note</code> table reference |      * Create a <code>note.t_note</code> table reference | ||||||
| @@ -119,33 +120,21 @@ public class TNote extends TableImpl<TNoteRecord> { | |||||||
|         super(child, key, T_NOTE); |         super(child, key, T_NOTE); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Note.NOTE; |         return Note.NOTE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_NOTE_PKEY); |         return Arrays.<Index>asList(Indexes.T_NOTE_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNote as(String alias) { |     public TNote as(String alias) { | ||||||
|         return new TNote(DSL.name(alias), this); |         return new TNote(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNote as(Name alias) { |     public TNote as(Name alias) { | ||||||
|         return new TNote(alias, this); |         return new TNote(alias, this); | ||||||
| @@ -166,4 +155,13 @@ public class TNote extends TableImpl<TNoteRecord> { | |||||||
|     public TNote rename(Name name) { |     public TNote rename(Name name) { | ||||||
|         return new TNote(name, null); |         return new TNote(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row6 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row6<Integer, String, EnumCategory, EnumNotetype, String, Timestamp> fieldsRow() { | ||||||
|  |         return (Row6) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.note.tables.records; | package de.jottyfan.timetrack.db.note.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.note.enums.EnumCategory; | ||||||
|  | import de.jottyfan.timetrack.db.note.enums.EnumNotetype; | ||||||
|  | import de.jottyfan.timetrack.db.note.tables.TNote; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,10 +17,6 @@ import org.jooq.Record6; | |||||||
| import org.jooq.Row6; | import org.jooq.Row6; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.note.enums.EnumCategory; |  | ||||||
| import de.jottyfan.timetrack.db.note.enums.EnumNotetype; |  | ||||||
| import de.jottyfan.timetrack.db.note.tables.TNote; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -24,14 +24,14 @@ import de.jottyfan.timetrack.db.note.tables.TNote; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TNoteRecord extends TableRecordImpl<TNoteRecord> implements Record6<Integer, String, EnumCategory, EnumNotetype, String, Timestamp> { | public class TNoteRecord extends TableRecordImpl<TNoteRecord> implements Record6<Integer, String, EnumCategory, EnumNotetype, String, Timestamp> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -1124958042; |     private static final long serialVersionUID = -1917591496; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>note.t_note.pk</code>. |      * Setter for <code>note.t_note.pk</code>. | ||||||
| @@ -121,223 +121,142 @@ public class TNoteRecord extends TableRecordImpl<TNoteRecord> implements Record6 | |||||||
|     // Record6 type implementation |     // Record6 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row6<Integer, String, EnumCategory, EnumNotetype, String, Timestamp> fieldsRow() { |     public Row6<Integer, String, EnumCategory, EnumNotetype, String, Timestamp> fieldsRow() { | ||||||
|         return (Row6) super.fieldsRow(); |         return (Row6) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row6<Integer, String, EnumCategory, EnumNotetype, String, Timestamp> valuesRow() { |     public Row6<Integer, String, EnumCategory, EnumNotetype, String, Timestamp> valuesRow() { | ||||||
|         return (Row6) super.valuesRow(); |         return (Row6) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field1() { |     public Field<Integer> field1() { | ||||||
|         return TNote.T_NOTE.PK; |         return TNote.T_NOTE.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field2() { |     public Field<String> field2() { | ||||||
|         return TNote.T_NOTE.TITLE; |         return TNote.T_NOTE.TITLE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<EnumCategory> field3() { |     public Field<EnumCategory> field3() { | ||||||
|         return TNote.T_NOTE.CATEGORY; |         return TNote.T_NOTE.CATEGORY; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<EnumNotetype> field4() { |     public Field<EnumNotetype> field4() { | ||||||
|         return TNote.T_NOTE.NOTETYPE; |         return TNote.T_NOTE.NOTETYPE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field5() { |     public Field<String> field5() { | ||||||
|         return TNote.T_NOTE.CONTENT; |         return TNote.T_NOTE.CONTENT; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field6() { |     public Field<Timestamp> field6() { | ||||||
|         return TNote.T_NOTE.LASTCHANGE; |         return TNote.T_NOTE.LASTCHANGE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component1() { |     public Integer component1() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component2() { |     public String component2() { | ||||||
|         return getTitle(); |         return getTitle(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public EnumCategory component3() { |     public EnumCategory component3() { | ||||||
|         return getCategory(); |         return getCategory(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public EnumNotetype component4() { |     public EnumNotetype component4() { | ||||||
|         return getNotetype(); |         return getNotetype(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component5() { |     public String component5() { | ||||||
|         return getContent(); |         return getContent(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component6() { |     public Timestamp component6() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value1() { |     public Integer value1() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value2() { |     public String value2() { | ||||||
|         return getTitle(); |         return getTitle(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public EnumCategory value3() { |     public EnumCategory value3() { | ||||||
|         return getCategory(); |         return getCategory(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public EnumNotetype value4() { |     public EnumNotetype value4() { | ||||||
|         return getNotetype(); |         return getNotetype(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value5() { |     public String value5() { | ||||||
|         return getContent(); |         return getContent(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value6() { |     public Timestamp value6() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNoteRecord value1(Integer value) { |     public TNoteRecord value1(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNoteRecord value2(String value) { |     public TNoteRecord value2(String value) { | ||||||
|         setTitle(value); |         setTitle(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNoteRecord value3(EnumCategory value) { |     public TNoteRecord value3(EnumCategory value) { | ||||||
|         setCategory(value); |         setCategory(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNoteRecord value4(EnumNotetype value) { |     public TNoteRecord value4(EnumNotetype value) { | ||||||
|         setNotetype(value); |         setNotetype(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNoteRecord value5(String value) { |     public TNoteRecord value5(String value) { | ||||||
|         setContent(value); |         setContent(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNoteRecord value6(Timestamp value) { |     public TNoteRecord value6(Timestamp value) { | ||||||
|         setLastchange(value); |         setLastchange(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TNoteRecord values(Integer value1, String value2, EnumCategory value3, EnumNotetype value4, String value5, Timestamp value6) { |     public TNoteRecord values(Integer value1, String value2, EnumCategory value3, EnumNotetype value4, String value5, Timestamp value6) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,16 +4,16 @@ | |||||||
| package de.jottyfan.timetrack.db.profile; | package de.jottyfan.timetrack.db.profile; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TLogin; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TLoginrole; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TRole; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
|  |  | ||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.OrderField; | import org.jooq.OrderField; | ||||||
| import org.jooq.impl.Internal; | import org.jooq.impl.Internal; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TLogin; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TLoginrole; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TRole; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * A class modelling indexes of tables of the <code>profile</code> schema. |  * A class modelling indexes of tables of the <code>profile</code> schema. | ||||||
| @@ -21,7 +21,7 @@ import de.jottyfan.timetrack.db.profile.tables.TRole; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -4,6 +4,12 @@ | |||||||
| package de.jottyfan.timetrack.db.profile; | package de.jottyfan.timetrack.db.profile; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.DefaultCatalog; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TLogin; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TLoginrole; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TRole; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.VLoginrole; | ||||||
|  |  | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -14,12 +20,6 @@ import org.jooq.Catalog; | |||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.impl.SchemaImpl; | import org.jooq.impl.SchemaImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.DefaultCatalog; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TLogin; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TLoginrole; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TRole; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.VLoginrole; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -27,14 +27,14 @@ import de.jottyfan.timetrack.db.profile.tables.VLoginrole; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class Profile extends SchemaImpl { | public class Profile extends SchemaImpl { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1056847603; |     private static final long serialVersionUID = -1284423911; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>profile</code> |      * The reference instance of <code>profile</code> | ||||||
| @@ -69,9 +69,6 @@ public class Profile extends SchemaImpl { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Catalog getCatalog() { |     public Catalog getCatalog() { | ||||||
|         return DefaultCatalog.DEFAULT_CATALOG; |         return DefaultCatalog.DEFAULT_CATALOG; | ||||||
|   | |||||||
| @@ -4,13 +4,13 @@ | |||||||
| package de.jottyfan.timetrack.db.profile; | package de.jottyfan.timetrack.db.profile; | ||||||
|  |  | ||||||
|  |  | ||||||
| import javax.annotation.Generated; |  | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TLogin; | import de.jottyfan.timetrack.db.profile.tables.TLogin; | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TLoginrole; | import de.jottyfan.timetrack.db.profile.tables.TLoginrole; | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TRole; | import de.jottyfan.timetrack.db.profile.tables.TRole; | ||||||
| import de.jottyfan.timetrack.db.profile.tables.VLoginrole; | import de.jottyfan.timetrack.db.profile.tables.VLoginrole; | ||||||
|  |  | ||||||
|  | import javax.annotation.Generated; | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Convenience access to all tables in profile |  * Convenience access to all tables in profile | ||||||
| @@ -18,7 +18,7 @@ import de.jottyfan.timetrack.db.profile.tables.VLoginrole; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @@ -28,20 +28,20 @@ public class Tables { | |||||||
|     /** |     /** | ||||||
|      * The table <code>profile.t_login</code>. |      * The table <code>profile.t_login</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TLogin T_LOGIN = de.jottyfan.timetrack.db.profile.tables.TLogin.T_LOGIN; |     public static final TLogin T_LOGIN = TLogin.T_LOGIN; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>profile.t_loginrole</code>. |      * The table <code>profile.t_loginrole</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TLoginrole T_LOGINROLE = de.jottyfan.timetrack.db.profile.tables.TLoginrole.T_LOGINROLE; |     public static final TLoginrole T_LOGINROLE = TLoginrole.T_LOGINROLE; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>profile.t_role</code>. |      * The table <code>profile.t_role</code>. | ||||||
|      */ |      */ | ||||||
|     public static final TRole T_ROLE = de.jottyfan.timetrack.db.profile.tables.TRole.T_ROLE; |     public static final TRole T_ROLE = TRole.T_ROLE; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The table <code>profile.v_loginrole</code>. |      * The table <code>profile.v_loginrole</code>. | ||||||
|      */ |      */ | ||||||
|     public static final VLoginrole V_LOGINROLE = de.jottyfan.timetrack.db.profile.tables.VLoginrole.V_LOGINROLE; |     public static final VLoginrole V_LOGINROLE = VLoginrole.V_LOGINROLE; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.profile.tables; | package de.jottyfan.timetrack.db.profile.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.profile.Profile; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.records.TLoginRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -15,16 +19,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row7; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.profile.Profile; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.records.TLoginRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -32,14 +33,14 @@ import de.jottyfan.timetrack.db.profile.tables.records.TLoginRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TLogin extends TableImpl<TLoginRecord> { | public class TLogin extends TableImpl<TLoginRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -417515373; |     private static final long serialVersionUID = 950956330; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>profile.t_login</code> |      * The reference instance of <code>profile.t_login</code> | ||||||
| @@ -57,37 +58,37 @@ public class TLogin extends TableImpl<TLoginRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_login.lastchange</code>. |      * The column <code>profile.t_login.lastchange</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginRecord, Timestamp> LASTCHANGE = createField("lastchange", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); |     public final TableField<TLoginRecord, Timestamp> LASTCHANGE = createField(DSL.name("lastchange"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_login.pk</code>. |      * The column <code>profile.t_login.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TLoginRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_login.login</code>. |      * The column <code>profile.t_login.login</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginRecord, String> LOGIN = createField("login", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TLoginRecord, String> LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_login.forename</code>. |      * The column <code>profile.t_login.forename</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginRecord, String> FORENAME = createField("forename", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<TLoginRecord, String> FORENAME = createField(DSL.name("forename"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_login.surname</code>. |      * The column <code>profile.t_login.surname</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginRecord, String> SURNAME = createField("surname", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<TLoginRecord, String> SURNAME = createField(DSL.name("surname"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_login.duedate</code>. |      * The column <code>profile.t_login.duedate</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginRecord, Timestamp> DUEDATE = createField("duedate", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, ""); |     public final TableField<TLoginRecord, Timestamp> DUEDATE = createField(DSL.name("duedate"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_login.password</code>. |      * The column <code>profile.t_login.password</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginRecord, String> PASSWORD = createField("password", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TLoginRecord, String> PASSWORD = createField(DSL.name("password"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>profile.t_login</code> table reference |      * Create a <code>profile.t_login</code> table reference | ||||||
| @@ -122,33 +123,21 @@ public class TLogin extends TableImpl<TLoginRecord> { | |||||||
|         super(child, key, T_LOGIN); |         super(child, key, T_LOGIN); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Profile.PROFILE; |         return Profile.PROFILE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_LOGIN_LOGIN_KEY, Indexes.T_LOGIN_PKEY); |         return Arrays.<Index>asList(Indexes.T_LOGIN_LOGIN_KEY, Indexes.T_LOGIN_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLogin as(String alias) { |     public TLogin as(String alias) { | ||||||
|         return new TLogin(DSL.name(alias), this); |         return new TLogin(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLogin as(Name alias) { |     public TLogin as(Name alias) { | ||||||
|         return new TLogin(alias, this); |         return new TLogin(alias, this); | ||||||
| @@ -169,4 +158,13 @@ public class TLogin extends TableImpl<TLoginRecord> { | |||||||
|     public TLogin rename(Name name) { |     public TLogin rename(Name name) { | ||||||
|         return new TLogin(name, null); |         return new TLogin(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row7 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row7<Timestamp, Integer, String, String, String, Timestamp, String> fieldsRow() { | ||||||
|  |         return (Row7) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.profile.tables; | package de.jottyfan.timetrack.db.profile.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.profile.Profile; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.records.TLoginroleRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -15,16 +19,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row4; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.profile.Profile; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.records.TLoginroleRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -32,14 +33,14 @@ import de.jottyfan.timetrack.db.profile.tables.records.TLoginroleRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TLoginrole extends TableImpl<TLoginroleRecord> { | public class TLoginrole extends TableImpl<TLoginroleRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -808655490; |     private static final long serialVersionUID = 1800752164; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>profile.t_loginrole</code> |      * The reference instance of <code>profile.t_loginrole</code> | ||||||
| @@ -57,22 +58,22 @@ public class TLoginrole extends TableImpl<TLoginroleRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_loginrole.lastchange</code>. |      * The column <code>profile.t_loginrole.lastchange</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginroleRecord, Timestamp> LASTCHANGE = createField("lastchange", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); |     public final TableField<TLoginroleRecord, Timestamp> LASTCHANGE = createField(DSL.name("lastchange"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_loginrole.pk</code>. |      * The column <code>profile.t_loginrole.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginroleRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TLoginroleRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_loginrole.fk_login</code>. |      * The column <code>profile.t_loginrole.fk_login</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginroleRecord, Integer> FK_LOGIN = createField("fk_login", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TLoginroleRecord, Integer> FK_LOGIN = createField(DSL.name("fk_login"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_loginrole.fk_role</code>. |      * The column <code>profile.t_loginrole.fk_role</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TLoginroleRecord, Integer> FK_ROLE = createField("fk_role", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TLoginroleRecord, Integer> FK_ROLE = createField(DSL.name("fk_role"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>profile.t_loginrole</code> table reference |      * Create a <code>profile.t_loginrole</code> table reference | ||||||
| @@ -107,33 +108,21 @@ public class TLoginrole extends TableImpl<TLoginroleRecord> { | |||||||
|         super(child, key, T_LOGINROLE); |         super(child, key, T_LOGINROLE); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Profile.PROFILE; |         return Profile.PROFILE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_LOGINROLE_FK_LOGIN_FK_ROLE_KEY, Indexes.T_LOGINROLE_PKEY); |         return Arrays.<Index>asList(Indexes.T_LOGINROLE_FK_LOGIN_FK_ROLE_KEY, Indexes.T_LOGINROLE_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginrole as(String alias) { |     public TLoginrole as(String alias) { | ||||||
|         return new TLoginrole(DSL.name(alias), this); |         return new TLoginrole(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginrole as(Name alias) { |     public TLoginrole as(Name alias) { | ||||||
|         return new TLoginrole(alias, this); |         return new TLoginrole(alias, this); | ||||||
| @@ -154,4 +143,13 @@ public class TLoginrole extends TableImpl<TLoginroleRecord> { | |||||||
|     public TLoginrole rename(Name name) { |     public TLoginrole rename(Name name) { | ||||||
|         return new TLoginrole(name, null); |         return new TLoginrole(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row4 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row4<Timestamp, Integer, Integer, Integer> fieldsRow() { | ||||||
|  |         return (Row4) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,10 @@ | |||||||
| package de.jottyfan.timetrack.db.profile.tables; | package de.jottyfan.timetrack.db.profile.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.Indexes; | ||||||
|  | import de.jottyfan.timetrack.db.profile.Profile; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.records.TRoleRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -15,16 +19,13 @@ import org.jooq.ForeignKey; | |||||||
| import org.jooq.Index; | import org.jooq.Index; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row3; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.Indexes; |  | ||||||
| import de.jottyfan.timetrack.db.profile.Profile; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.records.TRoleRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -32,14 +33,14 @@ import de.jottyfan.timetrack.db.profile.tables.records.TRoleRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TRole extends TableImpl<TRoleRecord> { | public class TRole extends TableImpl<TRoleRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -1679621514; |     private static final long serialVersionUID = 482541526; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>profile.t_role</code> |      * The reference instance of <code>profile.t_role</code> | ||||||
| @@ -57,17 +58,17 @@ public class TRole extends TableImpl<TRoleRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_role.lastchange</code>. |      * The column <code>profile.t_role.lastchange</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TRoleRecord, Timestamp> LASTCHANGE = createField("lastchange", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); |     public final TableField<TRoleRecord, Timestamp> LASTCHANGE = createField(DSL.name("lastchange"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("now()", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_role.pk</code>. |      * The column <code>profile.t_role.pk</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TRoleRecord, Integer> PK = createField("pk", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); |     public final TableField<TRoleRecord, Integer> PK = createField(DSL.name("pk"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.t_role.name</code>. |      * The column <code>profile.t_role.name</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<TRoleRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); |     public final TableField<TRoleRecord, String> NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>profile.t_role</code> table reference |      * Create a <code>profile.t_role</code> table reference | ||||||
| @@ -102,33 +103,21 @@ public class TRole extends TableImpl<TRoleRecord> { | |||||||
|         super(child, key, T_ROLE); |         super(child, key, T_ROLE); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Profile.PROFILE; |         return Profile.PROFILE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public List<Index> getIndexes() { |     public List<Index> getIndexes() { | ||||||
|         return Arrays.<Index>asList(Indexes.T_ROLE_NAME_KEY, Indexes.T_ROLE_PKEY); |         return Arrays.<Index>asList(Indexes.T_ROLE_NAME_KEY, Indexes.T_ROLE_PKEY); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TRole as(String alias) { |     public TRole as(String alias) { | ||||||
|         return new TRole(DSL.name(alias), this); |         return new TRole(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TRole as(Name alias) { |     public TRole as(Name alias) { | ||||||
|         return new TRole(alias, this); |         return new TRole(alias, this); | ||||||
| @@ -149,4 +138,13 @@ public class TRole extends TableImpl<TRoleRecord> { | |||||||
|     public TRole rename(Name name) { |     public TRole rename(Name name) { | ||||||
|         return new TRole(name, null); |         return new TRole(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row3 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row3<Timestamp, Integer, String> fieldsRow() { | ||||||
|  |         return (Row3) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,9 @@ | |||||||
| package de.jottyfan.timetrack.db.profile.tables; | package de.jottyfan.timetrack.db.profile.tables; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.Profile; | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.records.VLoginroleRecord; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -12,15 +15,13 @@ import org.jooq.Field; | |||||||
| import org.jooq.ForeignKey; | import org.jooq.ForeignKey; | ||||||
| import org.jooq.Name; | import org.jooq.Name; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
|  | import org.jooq.Row5; | ||||||
| import org.jooq.Schema; | import org.jooq.Schema; | ||||||
| import org.jooq.Table; | import org.jooq.Table; | ||||||
| import org.jooq.TableField; | import org.jooq.TableField; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
| import org.jooq.impl.TableImpl; | import org.jooq.impl.TableImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.Profile; |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.records.VLoginroleRecord; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -28,14 +29,14 @@ import de.jottyfan.timetrack.db.profile.tables.records.VLoginroleRecord; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class VLoginrole extends TableImpl<VLoginroleRecord> { | public class VLoginrole extends TableImpl<VLoginroleRecord> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1191046808; |     private static final long serialVersionUID = 964647722; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The reference instance of <code>profile.v_loginrole</code> |      * The reference instance of <code>profile.v_loginrole</code> | ||||||
| @@ -53,27 +54,27 @@ public class VLoginrole extends TableImpl<VLoginroleRecord> { | |||||||
|     /** |     /** | ||||||
|      * The column <code>profile.v_loginrole.login</code>. |      * The column <code>profile.v_loginrole.login</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VLoginroleRecord, String> LOGIN = createField("login", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VLoginroleRecord, String> LOGIN = createField(DSL.name("login"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.v_loginrole.forename</code>. |      * The column <code>profile.v_loginrole.forename</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VLoginroleRecord, String> FORENAME = createField("forename", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VLoginroleRecord, String> FORENAME = createField(DSL.name("forename"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.v_loginrole.surname</code>. |      * The column <code>profile.v_loginrole.surname</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VLoginroleRecord, String> SURNAME = createField("surname", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VLoginroleRecord, String> SURNAME = createField(DSL.name("surname"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.v_loginrole.duedate</code>. |      * The column <code>profile.v_loginrole.duedate</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VLoginroleRecord, Timestamp> DUEDATE = createField("duedate", org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); |     public final TableField<VLoginroleRecord, Timestamp> DUEDATE = createField(DSL.name("duedate"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * The column <code>profile.v_loginrole.role_name</code>. |      * The column <code>profile.v_loginrole.role_name</code>. | ||||||
|      */ |      */ | ||||||
|     public final TableField<VLoginroleRecord, String> ROLE_NAME = createField("role_name", org.jooq.impl.SQLDataType.CLOB, this, ""); |     public final TableField<VLoginroleRecord, String> ROLE_NAME = createField(DSL.name("role_name"), org.jooq.impl.SQLDataType.CLOB, this, ""); | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Create a <code>profile.v_loginrole</code> table reference |      * Create a <code>profile.v_loginrole</code> table reference | ||||||
| @@ -108,25 +109,16 @@ public class VLoginrole extends TableImpl<VLoginroleRecord> { | |||||||
|         super(child, key, V_LOGINROLE); |         super(child, key, V_LOGINROLE); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Schema getSchema() { |     public Schema getSchema() { | ||||||
|         return Profile.PROFILE; |         return Profile.PROFILE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VLoginrole as(String alias) { |     public VLoginrole as(String alias) { | ||||||
|         return new VLoginrole(DSL.name(alias), this); |         return new VLoginrole(DSL.name(alias), this); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VLoginrole as(Name alias) { |     public VLoginrole as(Name alias) { | ||||||
|         return new VLoginrole(alias, this); |         return new VLoginrole(alias, this); | ||||||
| @@ -147,4 +139,13 @@ public class VLoginrole extends TableImpl<VLoginroleRecord> { | |||||||
|     public VLoginrole rename(Name name) { |     public VLoginrole rename(Name name) { | ||||||
|         return new VLoginrole(name, null); |         return new VLoginrole(name, null); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |     // Row5 type methods | ||||||
|  |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public Row5<String, String, String, Timestamp, String> fieldsRow() { | ||||||
|  |         return (Row5) super.fieldsRow(); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.profile.tables.records; | package de.jottyfan.timetrack.db.profile.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TLogin; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,8 +15,6 @@ import org.jooq.Record7; | |||||||
| import org.jooq.Row7; | import org.jooq.Row7; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TLogin; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -22,14 +22,14 @@ import de.jottyfan.timetrack.db.profile.tables.TLogin; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TLoginRecord extends TableRecordImpl<TLoginRecord> implements Record7<Timestamp, Integer, String, String, String, Timestamp, String> { | public class TLoginRecord extends TableRecordImpl<TLoginRecord> implements Record7<Timestamp, Integer, String, String, String, Timestamp, String> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1603391159; |     private static final long serialVersionUID = 1230282197; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>profile.t_login.lastchange</code>. |      * Setter for <code>profile.t_login.lastchange</code>. | ||||||
| @@ -133,256 +133,163 @@ public class TLoginRecord extends TableRecordImpl<TLoginRecord> implements Recor | |||||||
|     // Record7 type implementation |     // Record7 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row7<Timestamp, Integer, String, String, String, Timestamp, String> fieldsRow() { |     public Row7<Timestamp, Integer, String, String, String, Timestamp, String> fieldsRow() { | ||||||
|         return (Row7) super.fieldsRow(); |         return (Row7) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row7<Timestamp, Integer, String, String, String, Timestamp, String> valuesRow() { |     public Row7<Timestamp, Integer, String, String, String, Timestamp, String> valuesRow() { | ||||||
|         return (Row7) super.valuesRow(); |         return (Row7) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field1() { |     public Field<Timestamp> field1() { | ||||||
|         return TLogin.T_LOGIN.LASTCHANGE; |         return TLogin.T_LOGIN.LASTCHANGE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field2() { |     public Field<Integer> field2() { | ||||||
|         return TLogin.T_LOGIN.PK; |         return TLogin.T_LOGIN.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return TLogin.T_LOGIN.LOGIN; |         return TLogin.T_LOGIN.LOGIN; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field4() { |     public Field<String> field4() { | ||||||
|         return TLogin.T_LOGIN.FORENAME; |         return TLogin.T_LOGIN.FORENAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field5() { |     public Field<String> field5() { | ||||||
|         return TLogin.T_LOGIN.SURNAME; |         return TLogin.T_LOGIN.SURNAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field6() { |     public Field<Timestamp> field6() { | ||||||
|         return TLogin.T_LOGIN.DUEDATE; |         return TLogin.T_LOGIN.DUEDATE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field7() { |     public Field<String> field7() { | ||||||
|         return TLogin.T_LOGIN.PASSWORD; |         return TLogin.T_LOGIN.PASSWORD; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component1() { |     public Timestamp component1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component2() { |     public Integer component2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getLogin(); |         return getLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component4() { |     public String component4() { | ||||||
|         return getForename(); |         return getForename(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component5() { |     public String component5() { | ||||||
|         return getSurname(); |         return getSurname(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component6() { |     public Timestamp component6() { | ||||||
|         return getDuedate(); |         return getDuedate(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component7() { |     public String component7() { | ||||||
|         return getPassword(); |         return getPassword(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value1() { |     public Timestamp value1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value2() { |     public Integer value2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getLogin(); |         return getLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value4() { |     public String value4() { | ||||||
|         return getForename(); |         return getForename(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value5() { |     public String value5() { | ||||||
|         return getSurname(); |         return getSurname(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value6() { |     public Timestamp value6() { | ||||||
|         return getDuedate(); |         return getDuedate(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value7() { |     public String value7() { | ||||||
|         return getPassword(); |         return getPassword(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginRecord value1(Timestamp value) { |     public TLoginRecord value1(Timestamp value) { | ||||||
|         setLastchange(value); |         setLastchange(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginRecord value2(Integer value) { |     public TLoginRecord value2(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginRecord value3(String value) { |     public TLoginRecord value3(String value) { | ||||||
|         setLogin(value); |         setLogin(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginRecord value4(String value) { |     public TLoginRecord value4(String value) { | ||||||
|         setForename(value); |         setForename(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginRecord value5(String value) { |     public TLoginRecord value5(String value) { | ||||||
|         setSurname(value); |         setSurname(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginRecord value6(Timestamp value) { |     public TLoginRecord value6(Timestamp value) { | ||||||
|         setDuedate(value); |         setDuedate(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginRecord value7(String value) { |     public TLoginRecord value7(String value) { | ||||||
|         setPassword(value); |         setPassword(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginRecord values(Timestamp value1, Integer value2, String value3, String value4, String value5, Timestamp value6, String value7) { |     public TLoginRecord values(Timestamp value1, Integer value2, String value3, String value4, String value5, Timestamp value6, String value7) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.profile.tables.records; | package de.jottyfan.timetrack.db.profile.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TLoginrole; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,8 +15,6 @@ import org.jooq.Record4; | |||||||
| import org.jooq.Row4; | import org.jooq.Row4; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TLoginrole; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -22,14 +22,14 @@ import de.jottyfan.timetrack.db.profile.tables.TLoginrole; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TLoginroleRecord extends TableRecordImpl<TLoginroleRecord> implements Record4<Timestamp, Integer, Integer, Integer> { | public class TLoginroleRecord extends TableRecordImpl<TLoginroleRecord> implements Record4<Timestamp, Integer, Integer, Integer> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -558353766; |     private static final long serialVersionUID = 440650070; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>profile.t_loginrole.lastchange</code>. |      * Setter for <code>profile.t_loginrole.lastchange</code>. | ||||||
| @@ -91,157 +91,100 @@ public class TLoginroleRecord extends TableRecordImpl<TLoginroleRecord> implemen | |||||||
|     // Record4 type implementation |     // Record4 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row4<Timestamp, Integer, Integer, Integer> fieldsRow() { |     public Row4<Timestamp, Integer, Integer, Integer> fieldsRow() { | ||||||
|         return (Row4) super.fieldsRow(); |         return (Row4) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row4<Timestamp, Integer, Integer, Integer> valuesRow() { |     public Row4<Timestamp, Integer, Integer, Integer> valuesRow() { | ||||||
|         return (Row4) super.valuesRow(); |         return (Row4) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field1() { |     public Field<Timestamp> field1() { | ||||||
|         return TLoginrole.T_LOGINROLE.LASTCHANGE; |         return TLoginrole.T_LOGINROLE.LASTCHANGE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field2() { |     public Field<Integer> field2() { | ||||||
|         return TLoginrole.T_LOGINROLE.PK; |         return TLoginrole.T_LOGINROLE.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field3() { |     public Field<Integer> field3() { | ||||||
|         return TLoginrole.T_LOGINROLE.FK_LOGIN; |         return TLoginrole.T_LOGINROLE.FK_LOGIN; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field4() { |     public Field<Integer> field4() { | ||||||
|         return TLoginrole.T_LOGINROLE.FK_ROLE; |         return TLoginrole.T_LOGINROLE.FK_ROLE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component1() { |     public Timestamp component1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component2() { |     public Integer component2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component3() { |     public Integer component3() { | ||||||
|         return getFkLogin(); |         return getFkLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component4() { |     public Integer component4() { | ||||||
|         return getFkRole(); |         return getFkRole(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value1() { |     public Timestamp value1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value2() { |     public Integer value2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value3() { |     public Integer value3() { | ||||||
|         return getFkLogin(); |         return getFkLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value4() { |     public Integer value4() { | ||||||
|         return getFkRole(); |         return getFkRole(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginroleRecord value1(Timestamp value) { |     public TLoginroleRecord value1(Timestamp value) { | ||||||
|         setLastchange(value); |         setLastchange(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginroleRecord value2(Integer value) { |     public TLoginroleRecord value2(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginroleRecord value3(Integer value) { |     public TLoginroleRecord value3(Integer value) { | ||||||
|         setFkLogin(value); |         setFkLogin(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginroleRecord value4(Integer value) { |     public TLoginroleRecord value4(Integer value) { | ||||||
|         setFkRole(value); |         setFkRole(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TLoginroleRecord values(Timestamp value1, Integer value2, Integer value3, Integer value4) { |     public TLoginroleRecord values(Timestamp value1, Integer value2, Integer value3, Integer value4) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.profile.tables.records; | package de.jottyfan.timetrack.db.profile.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.TRole; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,8 +15,6 @@ import org.jooq.Record3; | |||||||
| import org.jooq.Row3; | import org.jooq.Row3; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.TRole; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -22,14 +22,14 @@ import de.jottyfan.timetrack.db.profile.tables.TRole; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class TRoleRecord extends TableRecordImpl<TRoleRecord> implements Record3<Timestamp, Integer, String> { | public class TRoleRecord extends TableRecordImpl<TRoleRecord> implements Record3<Timestamp, Integer, String> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = -1670931490; |     private static final long serialVersionUID = -108760046; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>profile.t_role.lastchange</code>. |      * Setter for <code>profile.t_role.lastchange</code>. | ||||||
| @@ -77,124 +77,79 @@ public class TRoleRecord extends TableRecordImpl<TRoleRecord> implements Record3 | |||||||
|     // Record3 type implementation |     // Record3 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row3<Timestamp, Integer, String> fieldsRow() { |     public Row3<Timestamp, Integer, String> fieldsRow() { | ||||||
|         return (Row3) super.fieldsRow(); |         return (Row3) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row3<Timestamp, Integer, String> valuesRow() { |     public Row3<Timestamp, Integer, String> valuesRow() { | ||||||
|         return (Row3) super.valuesRow(); |         return (Row3) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field1() { |     public Field<Timestamp> field1() { | ||||||
|         return TRole.T_ROLE.LASTCHANGE; |         return TRole.T_ROLE.LASTCHANGE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Integer> field2() { |     public Field<Integer> field2() { | ||||||
|         return TRole.T_ROLE.PK; |         return TRole.T_ROLE.PK; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return TRole.T_ROLE.NAME; |         return TRole.T_ROLE.NAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component1() { |     public Timestamp component1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer component2() { |     public Integer component2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getName(); |         return getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value1() { |     public Timestamp value1() { | ||||||
|         return getLastchange(); |         return getLastchange(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Integer value2() { |     public Integer value2() { | ||||||
|         return getPk(); |         return getPk(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getName(); |         return getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TRoleRecord value1(Timestamp value) { |     public TRoleRecord value1(Timestamp value) { | ||||||
|         setLastchange(value); |         setLastchange(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TRoleRecord value2(Integer value) { |     public TRoleRecord value2(Integer value) { | ||||||
|         setPk(value); |         setPk(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TRoleRecord value3(String value) { |     public TRoleRecord value3(String value) { | ||||||
|         setName(value); |         setName(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public TRoleRecord values(Timestamp value1, Integer value2, String value3) { |     public TRoleRecord values(Timestamp value1, Integer value2, String value3) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -4,6 +4,8 @@ | |||||||
| package de.jottyfan.timetrack.db.profile.tables.records; | package de.jottyfan.timetrack.db.profile.tables.records; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | import de.jottyfan.timetrack.db.profile.tables.VLoginrole; | ||||||
|  |  | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
|  |  | ||||||
| import javax.annotation.Generated; | import javax.annotation.Generated; | ||||||
| @@ -13,8 +15,6 @@ import org.jooq.Record5; | |||||||
| import org.jooq.Row5; | import org.jooq.Row5; | ||||||
| import org.jooq.impl.TableRecordImpl; | import org.jooq.impl.TableRecordImpl; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.db.profile.tables.VLoginrole; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * This class is generated by jOOQ. |  * This class is generated by jOOQ. | ||||||
| @@ -22,14 +22,14 @@ import de.jottyfan.timetrack.db.profile.tables.VLoginrole; | |||||||
| @Generated( | @Generated( | ||||||
|     value = { |     value = { | ||||||
|         "http://www.jooq.org", |         "http://www.jooq.org", | ||||||
|         "jOOQ version:3.11.9" |         "jOOQ version:3.12.1" | ||||||
|     }, |     }, | ||||||
|     comments = "This class is generated by jOOQ" |     comments = "This class is generated by jOOQ" | ||||||
| ) | ) | ||||||
| @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | @SuppressWarnings({ "all", "unchecked", "rawtypes" }) | ||||||
| public class VLoginroleRecord extends TableRecordImpl<VLoginroleRecord> implements Record5<String, String, String, Timestamp, String> { | public class VLoginroleRecord extends TableRecordImpl<VLoginroleRecord> implements Record5<String, String, String, Timestamp, String> { | ||||||
|  |  | ||||||
|     private static final long serialVersionUID = 1656842842; |     private static final long serialVersionUID = 1784395796; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Setter for <code>profile.v_loginrole.login</code>. |      * Setter for <code>profile.v_loginrole.login</code>. | ||||||
| @@ -105,190 +105,121 @@ public class VLoginroleRecord extends TableRecordImpl<VLoginroleRecord> implemen | |||||||
|     // Record5 type implementation |     // Record5 type implementation | ||||||
|     // ------------------------------------------------------------------------- |     // ------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row5<String, String, String, Timestamp, String> fieldsRow() { |     public Row5<String, String, String, Timestamp, String> fieldsRow() { | ||||||
|         return (Row5) super.fieldsRow(); |         return (Row5) super.fieldsRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Row5<String, String, String, Timestamp, String> valuesRow() { |     public Row5<String, String, String, Timestamp, String> valuesRow() { | ||||||
|         return (Row5) super.valuesRow(); |         return (Row5) super.valuesRow(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field1() { |     public Field<String> field1() { | ||||||
|         return VLoginrole.V_LOGINROLE.LOGIN; |         return VLoginrole.V_LOGINROLE.LOGIN; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field2() { |     public Field<String> field2() { | ||||||
|         return VLoginrole.V_LOGINROLE.FORENAME; |         return VLoginrole.V_LOGINROLE.FORENAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field3() { |     public Field<String> field3() { | ||||||
|         return VLoginrole.V_LOGINROLE.SURNAME; |         return VLoginrole.V_LOGINROLE.SURNAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<Timestamp> field4() { |     public Field<Timestamp> field4() { | ||||||
|         return VLoginrole.V_LOGINROLE.DUEDATE; |         return VLoginrole.V_LOGINROLE.DUEDATE; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Field<String> field5() { |     public Field<String> field5() { | ||||||
|         return VLoginrole.V_LOGINROLE.ROLE_NAME; |         return VLoginrole.V_LOGINROLE.ROLE_NAME; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component1() { |     public String component1() { | ||||||
|         return getLogin(); |         return getLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component2() { |     public String component2() { | ||||||
|         return getForename(); |         return getForename(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component3() { |     public String component3() { | ||||||
|         return getSurname(); |         return getSurname(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp component4() { |     public Timestamp component4() { | ||||||
|         return getDuedate(); |         return getDuedate(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String component5() { |     public String component5() { | ||||||
|         return getRoleName(); |         return getRoleName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value1() { |     public String value1() { | ||||||
|         return getLogin(); |         return getLogin(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value2() { |     public String value2() { | ||||||
|         return getForename(); |         return getForename(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value3() { |     public String value3() { | ||||||
|         return getSurname(); |         return getSurname(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public Timestamp value4() { |     public Timestamp value4() { | ||||||
|         return getDuedate(); |         return getDuedate(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public String value5() { |     public String value5() { | ||||||
|         return getRoleName(); |         return getRoleName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VLoginroleRecord value1(String value) { |     public VLoginroleRecord value1(String value) { | ||||||
|         setLogin(value); |         setLogin(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VLoginroleRecord value2(String value) { |     public VLoginroleRecord value2(String value) { | ||||||
|         setForename(value); |         setForename(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VLoginroleRecord value3(String value) { |     public VLoginroleRecord value3(String value) { | ||||||
|         setSurname(value); |         setSurname(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VLoginroleRecord value4(Timestamp value) { |     public VLoginroleRecord value4(Timestamp value) { | ||||||
|         setDuedate(value); |         setDuedate(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VLoginroleRecord value5(String value) { |     public VLoginroleRecord value5(String value) { | ||||||
|         setRoleName(value); |         setRoleName(value); | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * {@inheritDoc} |  | ||||||
|      */ |  | ||||||
|     @Override |     @Override | ||||||
|     public VLoginroleRecord values(String value1, String value2, String value3, Timestamp value4, String value5) { |     public VLoginroleRecord values(String value1, String value2, String value3, Timestamp value4, String value5) { | ||||||
|         value1(value1); |         value1(value1); | ||||||
|   | |||||||
| @@ -32,6 +32,7 @@ public class ThemeBean implements Serializable | |||||||
| 		list.add("lumen"); | 		list.add("lumen"); | ||||||
| 		list.add("other"); | 		list.add("other"); | ||||||
| 		list.add("paper"); | 		list.add("paper"); | ||||||
|  | 		list.add("patternfly"); | ||||||
| 		list.add("readable"); | 		list.add("readable"); | ||||||
| 		list.add("sandstone"); | 		list.add("sandstone"); | ||||||
| 		list.add("simplex"); | 		list.add("simplex"); | ||||||
|   | |||||||
| @@ -1,33 +1,31 @@ | |||||||
| package de.jottyfan.timetrack.modules; | package de.jottyfan.timetrack.modules; | ||||||
|  |  | ||||||
| import javax.faces.context.FacesContext; | import java.sql.SQLException; | ||||||
|  |  | ||||||
| import org.jooq.DSLContext; | import org.jooq.DSLContext; | ||||||
| import org.jooq.TableLike; | import org.jooq.TableLike; | ||||||
|  |  | ||||||
| import de.jooqFaces.EJooqApplicationScope; | import de.jooqFaces.JooqFacesContext; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  *  |  *  | ||||||
|  * @author henkej |  * @author henkej | ||||||
|  * |  * | ||||||
|  */ |  */ | ||||||
| public class JooqGateway | public class JooqGateway { | ||||||
| { | 	private final JooqFacesContext facesContext; | ||||||
| 	private final FacesContext facesContext; |  | ||||||
|  |  | ||||||
| 	public JooqGateway(FacesContext facesContext) | 	public JooqGateway(JooqFacesContext facesContext) { | ||||||
| 	{ |  | ||||||
| 		this.facesContext = facesContext; | 		this.facesContext = facesContext; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public DSLContext getJooq() | 	public DSLContext getJooq() throws ClassNotFoundException, SQLException { | ||||||
| 	{ | 		return (DSLContext) facesContext.getJooq(); | ||||||
| 		return (DSLContext) facesContext.getExternalContext().getApplicationMap().get(EJooqApplicationScope.JOOQ_FACES_DSLCONTEXT.get()); |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public Integer getFkLogin() { | 	public Integer getFkLogin() { | ||||||
| 		// TODO: make a login, add the profile id to the session and read it here from facesContext | 		// TODO: make a login, add the profile id to the session and read it here from | ||||||
|  | 		// facesContext | ||||||
| 		return 1; | 		return 1; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -36,9 +34,10 @@ public class JooqGateway | |||||||
| 	 *  | 	 *  | ||||||
| 	 * @param subQuery | 	 * @param subQuery | ||||||
| 	 * @return number of entries | 	 * @return number of entries | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
|  | 	 * @throws SQLException | ||||||
| 	 */ | 	 */ | ||||||
| 	public Long getAmount(TableLike<?> table) | 	public Long getAmount(TableLike<?> table) throws ClassNotFoundException, SQLException { | ||||||
| 	{ |  | ||||||
| 		return getJooq().selectCount().from(table).fetchOne(0, long.class); | 		return getJooq().selectCount().from(table).fetchOne(0, long.class); | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -5,6 +5,7 @@ import javax.faces.context.FacesContext; | |||||||
| import javax.inject.Inject; | import javax.inject.Inject; | ||||||
| import javax.inject.Named; | import javax.inject.Named; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.help.Pages; | import de.jottyfan.timetrack.help.Pages; | ||||||
|  |  | ||||||
| /** | /** | ||||||
| @@ -21,7 +22,7 @@ public class SessionControl { | |||||||
|  |  | ||||||
| 	public String doLogin() { | 	public String doLogin() { | ||||||
| 		SessionModel model = new SessionModel(); | 		SessionModel model = new SessionModel(); | ||||||
| 		model.doLogin(FacesContext.getCurrentInstance(), sessionBean); | 		model.doLogin((JooqFacesContext) FacesContext.getCurrentInstance(), sessionBean); | ||||||
| 		return Pages.START.get(); | 		return Pages.START.get(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,14 +2,17 @@ package de.jottyfan.timetrack.modules; | |||||||
|  |  | ||||||
| import static de.jottyfan.timetrack.db.profile.Tables.T_LOGIN; | import static de.jottyfan.timetrack.db.profile.Tables.T_LOGIN; | ||||||
|  |  | ||||||
| import javax.faces.context.FacesContext; | import java.sql.SQLException; | ||||||
|  |  | ||||||
| import org.apache.logging.log4j.LogManager; | import org.apache.logging.log4j.LogManager; | ||||||
| import org.apache.logging.log4j.Logger; | import org.apache.logging.log4j.Logger; | ||||||
|  | import org.jooq.DSLContext; | ||||||
| import org.jooq.Record4; | import org.jooq.Record4; | ||||||
| import org.jooq.SelectConditionStep; | import org.jooq.SelectConditionStep; | ||||||
| import org.jooq.exception.DataAccessException; | import org.jooq.exception.DataAccessException; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  *  |  *  | ||||||
|  * @author henkej |  * @author henkej | ||||||
| @@ -18,7 +21,7 @@ import org.jooq.exception.DataAccessException; | |||||||
| public class SessionGateway extends JooqGateway { | public class SessionGateway extends JooqGateway { | ||||||
| 	private static final Logger LOGGER = LogManager.getLogger(); | 	private static final Logger LOGGER = LogManager.getLogger(); | ||||||
|  |  | ||||||
| 	public SessionGateway(FacesContext facesContext) { | 	public SessionGateway(JooqFacesContext facesContext) { | ||||||
| 		super(facesContext); | 		super(facesContext); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -28,31 +31,36 @@ public class SessionGateway extends JooqGateway { | |||||||
| 	 * @param bean | 	 * @param bean | ||||||
| 	 *          the bean | 	 *          the bean | ||||||
| 	 * @return true or false | 	 * @return true or false | ||||||
|  | 	 * @throws SQLException  | ||||||
|  | 	 * @throws ClassNotFoundException  | ||||||
|  | 	 * @throws DataAccessException  | ||||||
| 	 */ | 	 */ | ||||||
| 	public boolean seekAndSetLogin(SessionBean bean) { | 	public boolean seekAndSetLogin(SessionBean bean) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		SelectConditionStep<Record4<Integer, String, String, String>> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			SelectConditionStep<Record4<Integer, String, String, String>> sql = jooq | ||||||
| 			.select(T_LOGIN.PK, | 			// @formatter:off | ||||||
| 					    T_LOGIN.FORENAME, | 				.select(T_LOGIN.PK, | ||||||
| 					    T_LOGIN.SURNAME, | 						    T_LOGIN.FORENAME, | ||||||
| 					    T_LOGIN.PASSWORD) | 						    T_LOGIN.SURNAME, | ||||||
| 			.from(T_LOGIN) | 						    T_LOGIN.PASSWORD) | ||||||
| 			.where(T_LOGIN.LOGIN.eq(bean.getUsername())); | 				.from(T_LOGIN) | ||||||
| 		// @formatter:on | 				.where(T_LOGIN.LOGIN.eq(bean.getUsername())); | ||||||
| 		LOGGER.debug(sql.toString()); | 			// @formatter:on | ||||||
| 		Record4<Integer, String, String, String> r = sql.fetchOne(); | 			LOGGER.debug(sql.toString()); | ||||||
| 		if (r != null) { | 			Record4<Integer, String, String, String> r = sql.fetchOne(); | ||||||
| 			String encrypted = r.get(T_LOGIN.PASSWORD); | 			if (r != null) { | ||||||
| 			if (bean.checkSecret(encrypted)) { | 				String encrypted = r.get(T_LOGIN.PASSWORD); | ||||||
| 				bean.setLogin(r.get(T_LOGIN.PK)); | 				if (bean.checkSecret(encrypted)) { | ||||||
| 				bean.setForename(r.get(T_LOGIN.FORENAME)); | 					bean.setLogin(r.get(T_LOGIN.PK)); | ||||||
| 				bean.setSurname(r.get(T_LOGIN.SURNAME)); | 					bean.setForename(r.get(T_LOGIN.FORENAME)); | ||||||
| 				return true; | 					bean.setSurname(r.get(T_LOGIN.SURNAME)); | ||||||
|  | 					return true; | ||||||
|  | 				} else { | ||||||
|  | 					throw new DataAccessException("wrong password"); | ||||||
|  | 				} | ||||||
| 			} else { | 			} else { | ||||||
| 				throw new DataAccessException("wrong password"); | 				return false; | ||||||
| 			} | 			} | ||||||
| 		} else { |  | ||||||
| 			return false; |  | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,10 +1,13 @@ | |||||||
| package de.jottyfan.timetrack.modules; | package de.jottyfan.timetrack.modules; | ||||||
|  |  | ||||||
|  | import java.sql.SQLException; | ||||||
|  |  | ||||||
| import javax.faces.application.FacesMessage; | import javax.faces.application.FacesMessage; | ||||||
| import javax.faces.context.FacesContext; |  | ||||||
|  |  | ||||||
| import org.jooq.exception.DataAccessException; | import org.jooq.exception.DataAccessException; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  *  |  *  | ||||||
|  * @author henkej |  * @author henkej | ||||||
| @@ -12,10 +15,10 @@ import org.jooq.exception.DataAccessException; | |||||||
|  */ |  */ | ||||||
| public class SessionModel { | public class SessionModel { | ||||||
|  |  | ||||||
| 	public boolean doLogin(FacesContext facesContext, SessionBean bean) { | 	public boolean doLogin(JooqFacesContext facesContext, SessionBean bean) { | ||||||
| 		try { | 		try { | ||||||
| 			return new SessionGateway(facesContext).seekAndSetLogin(bean); | 			return new SessionGateway(facesContext).seekAndSetLogin(bean); | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on login", e.getMessage()); | 			FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on login", e.getMessage()); | ||||||
| 			facesContext.addMessage(null, msg); | 			facesContext.addMessage(null, msg); | ||||||
| 			return false; | 			return false; | ||||||
|   | |||||||
| @@ -7,6 +7,7 @@ import javax.faces.context.FacesContext; | |||||||
| import javax.inject.Inject; | import javax.inject.Inject; | ||||||
| import javax.inject.Named; | import javax.inject.Named; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.help.Navigation; | import de.jottyfan.timetrack.help.Navigation; | ||||||
| import de.jottyfan.timetrack.help.Pages; | import de.jottyfan.timetrack.help.Pages; | ||||||
| import de.jottyfan.timetrack.modules.ControlInterface; | import de.jottyfan.timetrack.modules.ControlInterface; | ||||||
| @@ -30,7 +31,7 @@ public class ContactControl extends Navigation implements ControlInterface, Seri | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String toList() { | 	public String toList() { | ||||||
| 		boolean ready = model.init(FacesContext.getCurrentInstance()); | 		boolean ready = model.init((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? navigateTo(Pages.CONTACT_LIST) : toStart(); | 		return ready ? navigateTo(Pages.CONTACT_LIST) : toStart(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -45,21 +46,21 @@ public class ContactControl extends Navigation implements ControlInterface, Seri | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String doAdd() { | 	public String doAdd() { | ||||||
| 		boolean ready = model.add(FacesContext.getCurrentInstance()); | 		boolean ready = model.add((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : navigateTo(Pages.CONTACT_ITEM); | 		return ready ? toList() : navigateTo(Pages.CONTACT_ITEM); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String doUpdate() { | 	public String doUpdate() { | ||||||
| 		boolean ready = model.update(FacesContext.getCurrentInstance()); | 		boolean ready = model.update((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : navigateTo(Pages.CONTACT_ITEM); | 		return ready ? toList() : navigateTo(Pages.CONTACT_ITEM); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String doDelete() { | 	public String doDelete() { | ||||||
| 		boolean ready = model.delete(FacesContext.getCurrentInstance()); | 		boolean ready = model.delete((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : navigateTo(Pages.CONTACT_ITEM); | 		return ready ? toList() : navigateTo(Pages.CONTACT_ITEM); | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
| 	public Integer getAmount() { | 	public Integer getAmount() { | ||||||
| 		return model.getAmount(FacesContext.getCurrentInstance()); | 		return model.getAmount((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -2,22 +2,24 @@ package de.jottyfan.timetrack.modules.contact; | |||||||
|  |  | ||||||
| import static de.jottyfan.timetrack.db.contact.Tables.T_CONTACT; | import static de.jottyfan.timetrack.db.contact.Tables.T_CONTACT; | ||||||
|  |  | ||||||
|  | import java.sql.SQLException; | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.Arrays; | import java.util.Arrays; | ||||||
| import java.util.List; | import java.util.List; | ||||||
|  |  | ||||||
| import javax.faces.context.FacesContext; |  | ||||||
|  |  | ||||||
| import org.apache.logging.log4j.LogManager; | import org.apache.logging.log4j.LogManager; | ||||||
| import org.apache.logging.log4j.Logger; | import org.apache.logging.log4j.Logger; | ||||||
|  | import org.jooq.DSLContext; | ||||||
| import org.jooq.DeleteConditionStep; | import org.jooq.DeleteConditionStep; | ||||||
| import org.jooq.InsertValuesStep4; | import org.jooq.InsertValuesStep4; | ||||||
| import org.jooq.Record1; | import org.jooq.Record1; | ||||||
| import org.jooq.Record5; | import org.jooq.Record5; | ||||||
| import org.jooq.SelectJoinStep; | import org.jooq.SelectJoinStep; | ||||||
| import org.jooq.UpdateConditionStep; | import org.jooq.UpdateConditionStep; | ||||||
|  | import org.jooq.exception.DataAccessException; | ||||||
| import org.jooq.impl.DSL; | import org.jooq.impl.DSL; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.db.contact.enums.EnumContacttype; | import de.jottyfan.timetrack.db.contact.enums.EnumContacttype; | ||||||
| import de.jottyfan.timetrack.db.contact.tables.records.TContactRecord; | import de.jottyfan.timetrack.db.contact.tables.records.TContactRecord; | ||||||
| import de.jottyfan.timetrack.modules.JooqGateway; | import de.jottyfan.timetrack.modules.JooqGateway; | ||||||
| @@ -30,7 +32,7 @@ import de.jottyfan.timetrack.modules.JooqGateway; | |||||||
| public class ContactGateway extends JooqGateway { | public class ContactGateway extends JooqGateway { | ||||||
| 	private static final Logger LOGGER = LogManager.getLogger(ContactGateway.class); | 	private static final Logger LOGGER = LogManager.getLogger(ContactGateway.class); | ||||||
|  |  | ||||||
| 	public ContactGateway(FacesContext facesContext) { | 	public ContactGateway(JooqFacesContext facesContext) { | ||||||
| 		super(facesContext); | 		super(facesContext); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -38,29 +40,34 @@ public class ContactGateway extends JooqGateway { | |||||||
| 	 * get sorted list of contacts | 	 * get sorted list of contacts | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @return a list (an empty one at least) | 	 * @return a list (an empty one at least) | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
|  | 	 * @throws DataAccessException | ||||||
| 	 */ | 	 */ | ||||||
| 	public List<ContactBean> getAll() { | 	public List<ContactBean> getAll() throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		SelectJoinStep<Record5<Integer, String, String, String, EnumContacttype>> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			SelectJoinStep<Record5<Integer, String, String, String, EnumContacttype>> sql = jooq | ||||||
| 			.select(T_CONTACT.PK, | 			// @formatter:off | ||||||
| 					    T_CONTACT.FORENAME, | 				.select(T_CONTACT.PK, | ||||||
| 					    T_CONTACT.SURNAME, | 						    T_CONTACT.FORENAME, | ||||||
| 					    T_CONTACT.CONTACT, | 						    T_CONTACT.SURNAME, | ||||||
| 					    T_CONTACT.TYPE) | 						    T_CONTACT.CONTACT, | ||||||
| 			.from(T_CONTACT); | 						    T_CONTACT.TYPE) | ||||||
| 		// @formatter:on | 				.from(T_CONTACT); | ||||||
| 		LOGGER.debug("{}", sql.toString()); | 			// @formatter:on | ||||||
| 		List<ContactBean> list = new ArrayList<>(); | 			LOGGER.debug("{}", sql.toString()); | ||||||
| 		for (Record5<Integer, String, String, String, EnumContacttype> r : sql.fetch()) { | 			List<ContactBean> list = new ArrayList<>(); | ||||||
| 			ContactBean bean = new ContactBean(r.get(T_CONTACT.PK)); | 			for (Record5<Integer, String, String, String, EnumContacttype> r : sql.fetch()) { | ||||||
| 			bean.setForename(r.get(T_CONTACT.FORENAME)); | 				ContactBean bean = new ContactBean(r.get(T_CONTACT.PK)); | ||||||
| 			bean.setSurname(r.get(T_CONTACT.SURNAME)); | 				bean.setForename(r.get(T_CONTACT.FORENAME)); | ||||||
| 			bean.setContact(r.get(T_CONTACT.CONTACT)); | 				bean.setSurname(r.get(T_CONTACT.SURNAME)); | ||||||
| 			bean.setType(r.get(T_CONTACT.TYPE)); | 				bean.setContact(r.get(T_CONTACT.CONTACT)); | ||||||
| 			list.add(bean); | 				bean.setType(r.get(T_CONTACT.TYPE)); | ||||||
|  | 				list.add(bean); | ||||||
|  | 			} | ||||||
|  | 			list.sort((o1, o2) -> o1 == null ? 0 : o1.compareTo(o2)); | ||||||
|  | 			return list; | ||||||
| 		} | 		} | ||||||
| 		list.sort((o1, o2) -> o1 == null ? 0 : o1.compareTo(o2)); |  | ||||||
| 		return list; |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| @@ -69,15 +76,20 @@ public class ContactGateway extends JooqGateway { | |||||||
| 	 * @param pk | 	 * @param pk | ||||||
| 	 *          the id of the contact | 	 *          the id of the contact | ||||||
| 	 * @return the number of affected database rows, should be 1 | 	 * @return the number of affected database rows, should be 1 | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
|  | 	 * @throws DataAccessException | ||||||
| 	 */ | 	 */ | ||||||
| 	public Integer delete(Integer pk) { | 	public Integer delete(Integer pk) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		DeleteConditionStep<TContactRecord> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			DeleteConditionStep<TContactRecord> sql = jooq | ||||||
| 			.deleteFrom(T_CONTACT) | 			// @formatter:off | ||||||
| 			.where(T_CONTACT.PK.eq(pk)); | 				.deleteFrom(T_CONTACT) | ||||||
| 		// @formatter:on | 				.where(T_CONTACT.PK.eq(pk)); | ||||||
| 		LOGGER.debug("{}", sql.toString()); | 			// @formatter:on | ||||||
| 		return sql.execute(); | 			LOGGER.debug("{}", sql.toString()); | ||||||
|  | 			return sql.execute(); | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -87,19 +99,24 @@ public class ContactGateway extends JooqGateway { | |||||||
| 	 * @param bean | 	 * @param bean | ||||||
| 	 *          the contact information | 	 *          the contact information | ||||||
| 	 * @return the number of affected database rows, should be 1 | 	 * @return the number of affected database rows, should be 1 | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
|  | 	 * @throws DataAccessException | ||||||
| 	 */ | 	 */ | ||||||
| 	public Integer add(ContactBean bean) { | 	public Integer add(ContactBean bean) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		InsertValuesStep4<TContactRecord, String, String, String, EnumContacttype> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			InsertValuesStep4<TContactRecord, String, String, String, EnumContacttype> sql = jooq | ||||||
| 			.insertInto(T_CONTACT, | 			// @formatter:off | ||||||
| 					        T_CONTACT.FORENAME, | 				.insertInto(T_CONTACT, | ||||||
| 									T_CONTACT.SURNAME, | 						        T_CONTACT.FORENAME, | ||||||
| 									T_CONTACT.CONTACT, | 										T_CONTACT.SURNAME, | ||||||
| 									T_CONTACT.TYPE) | 										T_CONTACT.CONTACT, | ||||||
| 			.values(bean.getForename(), bean.getSurname(), bean.getContact(), bean.getType()); | 										T_CONTACT.TYPE) | ||||||
| 		// @formatter:on | 				.values(bean.getForename(), bean.getSurname(), bean.getContact(), bean.getType()); | ||||||
| 		LOGGER.debug("{}", sql.toString()); | 			// @formatter:on | ||||||
| 		return sql.execute(); | 			LOGGER.debug("{}", sql.toString()); | ||||||
|  | 			return sql.execute(); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| @@ -108,34 +125,44 @@ public class ContactGateway extends JooqGateway { | |||||||
| 	 * @param bean | 	 * @param bean | ||||||
| 	 *          the contact information | 	 *          the contact information | ||||||
| 	 * @return the number of affected database rows, should be 1 | 	 * @return the number of affected database rows, should be 1 | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
|  | 	 * @throws DataAccessException | ||||||
| 	 */ | 	 */ | ||||||
| 	public Integer update(ContactBean bean) { | 	public Integer update(ContactBean bean) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		UpdateConditionStep<TContactRecord> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			UpdateConditionStep<TContactRecord> sql = jooq | ||||||
| 			.update(T_CONTACT) | 			// @formatter:off | ||||||
| 			.set(T_CONTACT.FORENAME, bean.getForename()) | 				.update(T_CONTACT) | ||||||
| 			.set(T_CONTACT.SURNAME, bean.getSurname()) | 				.set(T_CONTACT.FORENAME, bean.getForename()) | ||||||
| 			.set(T_CONTACT.CONTACT, bean.getContact()) | 				.set(T_CONTACT.SURNAME, bean.getSurname()) | ||||||
| 			.set(T_CONTACT.TYPE, bean.getType()) | 				.set(T_CONTACT.CONTACT, bean.getContact()) | ||||||
| 			.where(T_CONTACT.PK.eq(bean.getPk())); | 				.set(T_CONTACT.TYPE, bean.getType()) | ||||||
| 		// @formatter:on | 				.where(T_CONTACT.PK.eq(bean.getPk())); | ||||||
| 		LOGGER.debug("{}", sql.toString()); | 			// @formatter:on | ||||||
| 		return sql.execute(); | 			LOGGER.debug("{}", sql.toString()); | ||||||
|  | 			return sql.execute(); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| 	 * get number of entries in t_contact | 	 * get number of entries in t_contact | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @return number of entries | 	 * @return number of entries | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
|  | 	 * @throws DataAccessException | ||||||
| 	 */ | 	 */ | ||||||
| 	public Integer getAmount() { | 	public Integer getAmount() throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		SelectJoinStep<Record1<Integer>> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			SelectJoinStep<Record1<Integer>> sql = jooq | ||||||
| 			.selectCount() | 			// @formatter:off | ||||||
| 			.from(T_CONTACT); | 				.selectCount() | ||||||
| 		// @formatter:on | 				.from(T_CONTACT); | ||||||
| 		LOGGER.debug("{}", sql.toString()); | 			// @formatter:on | ||||||
| 		return sql.fetchOne(DSL.count()); | 			LOGGER.debug("{}", sql.toString()); | ||||||
|  | 			return sql.fetchOne(DSL.count()); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
|   | |||||||
| @@ -1,16 +1,17 @@ | |||||||
| package de.jottyfan.timetrack.modules.contact; | package de.jottyfan.timetrack.modules.contact; | ||||||
|  |  | ||||||
| import java.io.Serializable; | import java.io.Serializable; | ||||||
|  | import java.sql.SQLException; | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.List; | import java.util.List; | ||||||
|  |  | ||||||
| import javax.enterprise.context.SessionScoped; | import javax.enterprise.context.SessionScoped; | ||||||
| import javax.faces.application.FacesMessage; | import javax.faces.application.FacesMessage; | ||||||
| import javax.faces.context.FacesContext; |  | ||||||
| import javax.inject.Named; | import javax.inject.Named; | ||||||
|  |  | ||||||
| import org.jooq.exception.DataAccessException; | import org.jooq.exception.DataAccessException; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.db.contact.enums.EnumContacttype; | import de.jottyfan.timetrack.db.contact.enums.EnumContacttype; | ||||||
| import de.jottyfan.timetrack.modules.Model; | import de.jottyfan.timetrack.modules.Model; | ||||||
|  |  | ||||||
| @@ -28,14 +29,14 @@ public class ContactModel implements Model, Serializable { | |||||||
| 	private List<ContactBean> list; | 	private List<ContactBean> list; | ||||||
| 	private List<EnumContacttype> types; | 	private List<EnumContacttype> types; | ||||||
|  |  | ||||||
| 	public boolean init(FacesContext facesContext) { | 	public boolean init(JooqFacesContext facesContext) { | ||||||
| 		bean = new ContactBean(null); | 		bean = new ContactBean(null); | ||||||
| 		try { | 		try { | ||||||
| 			ContactGateway gw = new ContactGateway(facesContext); | 			ContactGateway gw = new ContactGateway(facesContext); | ||||||
| 			list = gw.getAll(); | 			list = gw.getAll(); | ||||||
| 			types = gw.getTypes(); | 			types = gw.getTypes(); | ||||||
| 			return true; | 			return true; | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, | 			facesContext.addMessage(null, | ||||||
| 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on loading data from db", e.getMessage())); | 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on loading data from db", e.getMessage())); | ||||||
| 			list = new ArrayList<>(); | 			list = new ArrayList<>(); | ||||||
| @@ -44,46 +45,46 @@ public class ContactModel implements Model, Serializable { | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean delete(FacesContext facesContext) { | 	public boolean delete(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			Integer affected = new ContactGateway(facesContext).delete(bean.getPk()); | 			Integer affected = new ContactGateway(facesContext).delete(bean.getPk()); | ||||||
| 			return affected.equals(1); | 			return affected.equals(1); | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, | 			facesContext.addMessage(null, | ||||||
| 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on deleting data from db", e.getMessage())); | 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on deleting data from db", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean add(FacesContext facesContext) { | 	public boolean add(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			Integer affected = new ContactGateway(facesContext).add(bean); | 			Integer affected = new ContactGateway(facesContext).add(bean); | ||||||
| 			return affected.equals(1); | 			return affected.equals(1); | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, | 			facesContext.addMessage(null, | ||||||
| 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on adding data to db", e.getMessage())); | 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on adding data to db", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean update(FacesContext facesContext) { | 	public boolean update(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			Integer affected = new ContactGateway(facesContext).update(bean); | 			Integer affected = new ContactGateway(facesContext).update(bean); | ||||||
| 			return affected.equals(1); | 			return affected.equals(1); | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, | 			facesContext.addMessage(null, | ||||||
| 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on updating data to db", e.getMessage())); | 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on updating data to db", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public Integer getAmount(FacesContext facesContext) { | 	public Integer getAmount(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			return new ContactGateway(facesContext).getAmount(); | 			return new ContactGateway(facesContext).getAmount(); | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, | 			facesContext.addMessage(null, | ||||||
| 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on getting size of contacts", e.getMessage())); | 					new FacesMessage(FacesMessage.SEVERITY_ERROR, "error on getting size of contacts", e.getMessage())); | ||||||
| 			return 0; | 			return -1; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -10,6 +10,7 @@ import javax.faces.context.FacesContext; | |||||||
| import javax.inject.Inject; | import javax.inject.Inject; | ||||||
| import javax.inject.Named; | import javax.inject.Named; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.help.Navigation; | import de.jottyfan.timetrack.help.Navigation; | ||||||
| import de.jottyfan.timetrack.help.Pages; | import de.jottyfan.timetrack.help.Pages; | ||||||
| import de.jottyfan.timetrack.modules.ControlInterface; | import de.jottyfan.timetrack.modules.ControlInterface; | ||||||
| @@ -33,7 +34,7 @@ public class DoneControl extends Navigation implements ControlInterface, Seriali | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String toList() { | 	public String toList() { | ||||||
| 		boolean ready = model.init(FacesContext.getCurrentInstance()); | 		boolean ready = model.init((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? navigateTo(Pages.DONE_INIT) : toStart(); | 		return ready ? navigateTo(Pages.DONE_INIT) : toStart(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -41,13 +42,13 @@ public class DoneControl extends Navigation implements ControlInterface, Seriali | |||||||
| 		DoneBean bean = new DoneBean(); | 		DoneBean bean = new DoneBean(); | ||||||
| 		bean.setTimeFrom(getCurrentDate()); | 		bean.setTimeFrom(getCurrentDate()); | ||||||
| 		model.setBean(bean); | 		model.setBean(bean); | ||||||
| 		boolean ready = model.loadDefaults(FacesContext.getCurrentInstance()); | 		boolean ready = model.loadDefaults((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? navigateTo(Pages.DONE_ADD) : toList(); | 		return ready ? navigateTo(Pages.DONE_ADD) : toList(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String toEdit(DoneBean bean) { | 	public String toEdit(DoneBean bean) { | ||||||
| 		model.setBean(bean); | 		model.setBean(bean); | ||||||
| 		boolean ready = model.loadDefaults(FacesContext.getCurrentInstance()); | 		boolean ready = model.loadDefaults((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? navigateTo(Pages.DONE_EDIT) : toList(); | 		return ready ? navigateTo(Pages.DONE_EDIT) : toList(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -57,17 +58,17 @@ public class DoneControl extends Navigation implements ControlInterface, Seriali | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String doUpdate() { | 	public String doUpdate() { | ||||||
| 		boolean ready = model.update(FacesContext.getCurrentInstance()); | 		boolean ready = model.update((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : toEdit(model.getBean()); | 		return ready ? toList() : toEdit(model.getBean()); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String doDelete() { | 	public String doDelete() { | ||||||
| 		boolean ready = model.delete(FacesContext.getCurrentInstance()); | 		boolean ready = model.delete((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : toDelete(model.getBean()); | 		return ready ? toList() : toDelete(model.getBean()); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String doAdd() { | 	public String doAdd() { | ||||||
| 		boolean ready = model.insert(FacesContext.getCurrentInstance()); | 		boolean ready = model.insert((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : toAdd(); | 		return ready ? toList() : toAdd(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -7,6 +7,7 @@ import static de.jottyfan.timetrack.db.done.Tables.T_PROJECT; | |||||||
| import static de.jottyfan.timetrack.db.done.Tables.V_TASKLIST; | import static de.jottyfan.timetrack.db.done.Tables.V_TASKLIST; | ||||||
| import static de.jottyfan.timetrack.db.done.Tables.V_TOTALOFDAY; | import static de.jottyfan.timetrack.db.done.Tables.V_TOTALOFDAY; | ||||||
|  |  | ||||||
|  | import java.sql.SQLException; | ||||||
| import java.sql.Timestamp; | import java.sql.Timestamp; | ||||||
| import java.text.SimpleDateFormat; | import java.text.SimpleDateFormat; | ||||||
| import java.time.LocalDateTime; | import java.time.LocalDateTime; | ||||||
| @@ -16,10 +17,9 @@ import java.util.HashMap; | |||||||
| import java.util.List; | import java.util.List; | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
|  |  | ||||||
| import javax.faces.context.FacesContext; |  | ||||||
|  |  | ||||||
| import org.apache.logging.log4j.LogManager; | import org.apache.logging.log4j.LogManager; | ||||||
| import org.apache.logging.log4j.Logger; | import org.apache.logging.log4j.Logger; | ||||||
|  | import org.jooq.DSLContext; | ||||||
| import org.jooq.DeleteConditionStep; | import org.jooq.DeleteConditionStep; | ||||||
| import org.jooq.InsertValuesStep6; | import org.jooq.InsertValuesStep6; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
| @@ -30,6 +30,7 @@ import org.jooq.SelectWhereStep; | |||||||
| import org.jooq.UpdateConditionStep; | import org.jooq.UpdateConditionStep; | ||||||
| import org.jooq.exception.DataAccessException; | import org.jooq.exception.DataAccessException; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TDoneRecord; | import de.jottyfan.timetrack.db.done.tables.records.TDoneRecord; | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TJobRecord; | import de.jottyfan.timetrack.db.done.tables.records.TJobRecord; | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord; | import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord; | ||||||
| @@ -46,7 +47,7 @@ import net.bootsfaces.component.fullCalendar.FullCalendarEventList; | |||||||
| public class DoneGateway extends JooqGateway { | public class DoneGateway extends JooqGateway { | ||||||
| 	private final static Logger LOGGER = LogManager.getLogger(DoneGateway.class); | 	private final static Logger LOGGER = LogManager.getLogger(DoneGateway.class); | ||||||
|  |  | ||||||
| 	public DoneGateway(FacesContext facesContext) { | 	public DoneGateway(JooqFacesContext facesContext) { | ||||||
| 		super(facesContext); | 		super(facesContext); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -54,51 +55,63 @@ public class DoneGateway extends JooqGateway { | |||||||
| 	 * get all modules from db | 	 * get all modules from db | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @return modules | 	 * @return modules | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public List<TModuleRecord> getAllModules() throws DataAccessException { | 	public List<TModuleRecord> getAllModules() throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		List<TModuleRecord> list = new ArrayList<>(); | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		SelectWhereStep<TModuleRecord> sql = getJooq().selectFrom(T_MODULE); | 			List<TModuleRecord> list = new ArrayList<>(); | ||||||
| 		LOGGER.debug(sql.toString()); | 			SelectWhereStep<TModuleRecord> sql = jooq.selectFrom(T_MODULE); | ||||||
| 		for (TModuleRecord r : sql.fetch()) { | 			LOGGER.debug(sql.toString()); | ||||||
| 			list.add(r); | 			for (TModuleRecord r : sql.fetch()) { | ||||||
|  | 				list.add(r); | ||||||
|  | 			} | ||||||
|  | 			list.sort((o1, o2) -> o1 == null || o2 == null || o1.getName() == null || o2.getName() == null ? 0 | ||||||
|  | 					: o1.getName().compareTo(o2.getName())); | ||||||
|  | 			return list; | ||||||
| 		} | 		} | ||||||
| 		list.sort((o1, o2) -> o1 == null || o2 == null || o1.getName() == null || o2.getName() == null ? 0 |  | ||||||
| 				: o1.getName().compareTo(o2.getName())); |  | ||||||
| 		return list; |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| 	 * get all activities from db | 	 * get all activities from db | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @return activities | 	 * @return activities | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public List<TJobRecord> getAllActivities() throws DataAccessException { | 	public List<TJobRecord> getAllActivities() throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		List<TJobRecord> list = new ArrayList<>(); | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		SelectWhereStep<TJobRecord> sql = getJooq().selectFrom(T_JOB); | 			List<TJobRecord> list = new ArrayList<>(); | ||||||
| 		LOGGER.debug(sql.toString()); | 			SelectWhereStep<TJobRecord> sql = jooq.selectFrom(T_JOB); | ||||||
| 		for (TJobRecord r : sql.fetch()) { | 			LOGGER.debug(sql.toString()); | ||||||
| 			list.add(r); | 			for (TJobRecord r : sql.fetch()) { | ||||||
|  | 				list.add(r); | ||||||
|  | 			} | ||||||
|  | 			list.sort((o1, o2) -> o1 == null || o2 == null || o1.getName() == null || o2.getName() == null ? 0 | ||||||
|  | 					: o1.getName().compareTo(o2.getName())); | ||||||
|  | 			return list; | ||||||
| 		} | 		} | ||||||
| 		list.sort((o1, o2) -> o1 == null || o2 == null || o1.getName() == null || o2.getName() == null ? 0 |  | ||||||
| 				: o1.getName().compareTo(o2.getName())); |  | ||||||
| 		return list; |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| 	 * get all projects from db | 	 * get all projects from db | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @return projects | 	 * @return projects | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public List<TProjectRecord> getAllProjects() throws DataAccessException { | 	public List<TProjectRecord> getAllProjects() throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		List<TProjectRecord> list = new ArrayList<>(); | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		SelectWhereStep<TProjectRecord> sql = getJooq().selectFrom(T_PROJECT); | 			List<TProjectRecord> list = new ArrayList<>(); | ||||||
| 		LOGGER.debug(sql.toString()); | 			SelectWhereStep<TProjectRecord> sql = jooq.selectFrom(T_PROJECT); | ||||||
| 		for (TProjectRecord r : sql.fetch()) { | 			LOGGER.debug(sql.toString()); | ||||||
| 			list.add(r); | 			for (TProjectRecord r : sql.fetch()) { | ||||||
|  | 				list.add(r); | ||||||
|  | 			} | ||||||
|  | 			list.sort((o1, o2) -> o1 == null || o2 == null || o1.getName() == null || o2.getName() == null ? 0 | ||||||
|  | 					: o1.getName().compareTo(o2.getName())); | ||||||
|  | 			return list; | ||||||
| 		} | 		} | ||||||
| 		list.sort((o1, o2) -> o1 == null || o2 == null || o1.getName() == null || o2.getName() == null ? 0 |  | ||||||
| 				: o1.getName().compareTo(o2.getName())); |  | ||||||
| 		return list; |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	private Map<Integer, TProjectRecord> generateProjectMap(List<TProjectRecord> list) { | 	private Map<Integer, TProjectRecord> generateProjectMap(List<TProjectRecord> list) { | ||||||
| @@ -132,8 +145,10 @@ public class DoneGateway extends JooqGateway { | |||||||
| 	 *          the day; if null, the current date is used | 	 *          the day; if null, the current date is used | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @return a list of found times, an empty one at least | 	 * @return a list of found times, an empty one at least | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public List<DoneBean> getAll(LocalDateTime day) throws DataAccessException { | 	public List<DoneBean> getAll(LocalDateTime day) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		Map<Integer, TProjectRecord> projectMap = generateProjectMap(getAllProjects()); | 		Map<Integer, TProjectRecord> projectMap = generateProjectMap(getAllProjects()); | ||||||
| 		Map<Integer, TModuleRecord> moduleMap = generateModuleMap(getAllModules()); | 		Map<Integer, TModuleRecord> moduleMap = generateModuleMap(getAllModules()); | ||||||
| 		Map<Integer, TJobRecord> jobMap = generateJobMap(getAllActivities()); | 		Map<Integer, TJobRecord> jobMap = generateJobMap(getAllActivities()); | ||||||
| @@ -145,20 +160,22 @@ public class DoneGateway extends JooqGateway { | |||||||
| 		LocalDateTime tomorrow = day.plusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0); | 		LocalDateTime tomorrow = day.plusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0); | ||||||
|  |  | ||||||
| 		List<DoneBean> list = new ArrayList<>(); | 		List<DoneBean> list = new ArrayList<>(); | ||||||
| 		SelectConditionStep<TDoneRecord> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			SelectConditionStep<TDoneRecord> sql = getJooq() | ||||||
| 			.selectFrom(T_DONE) | 			// @formatter:off | ||||||
| 			.where(T_DONE.FK_LOGIN.eq(getFkLogin())) | 				.selectFrom(T_DONE) | ||||||
| 			.and(T_DONE.TIME_FROM.isNull() | 				.where(T_DONE.FK_LOGIN.eq(getFkLogin())) | ||||||
| 				.or(T_DONE.TIME_FROM.greaterThan(Timestamp.valueOf(yesterday)) | 				.and(T_DONE.TIME_FROM.isNull() | ||||||
| 					.and(T_DONE.TIME_FROM.lessThan(Timestamp.valueOf(tomorrow))))) | 					.or(T_DONE.TIME_FROM.greaterThan(Timestamp.valueOf(yesterday)) | ||||||
| 			.and(T_DONE.TIME_UNTIL.isNull() | 						.and(T_DONE.TIME_FROM.lessThan(Timestamp.valueOf(tomorrow))))) | ||||||
| 				.or(T_DONE.TIME_UNTIL.lessThan(Timestamp.valueOf(tomorrow)) | 				.and(T_DONE.TIME_UNTIL.isNull() | ||||||
| 					.and(T_DONE.TIME_UNTIL.greaterThan(Timestamp.valueOf(yesterday))))); | 					.or(T_DONE.TIME_UNTIL.lessThan(Timestamp.valueOf(tomorrow)) | ||||||
| 		// @formatter:on | 						.and(T_DONE.TIME_UNTIL.greaterThan(Timestamp.valueOf(yesterday))))); | ||||||
| 		LOGGER.debug(sql.toString()); | 			// @formatter:on | ||||||
| 		for (TDoneRecord r : sql.fetch()) { | 			LOGGER.debug(sql.toString()); | ||||||
| 			list.add(new DoneBean(r, projectMap, moduleMap, jobMap)); | 			for (TDoneRecord r : sql.fetch()) { | ||||||
|  | 				list.add(new DoneBean(r, projectMap, moduleMap, jobMap)); | ||||||
|  | 			} | ||||||
| 		} | 		} | ||||||
| 		list.sort((o1, o2) -> o1 == null || o2 == null ? 0 : o1.compareTo(o2)); | 		list.sort((o1, o2) -> o1 == null || o2 == null ? 0 : o1.compareTo(o2)); | ||||||
| 		return list; | 		return list; | ||||||
| @@ -168,57 +185,69 @@ public class DoneGateway extends JooqGateway { | |||||||
| 	 * insert data into t_done | 	 * insert data into t_done | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @param bean | 	 * @param bean | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public void insert(DoneBean bean) throws DataAccessException { | 	public void insert(DoneBean bean) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		Integer fkProject = bean.getProject() == null ? null : bean.getProject().getPk(); | 		Integer fkProject = bean.getProject() == null ? null : bean.getProject().getPk(); | ||||||
| 		Integer fkModule = bean.getModule() == null ? null : bean.getModule().getPk(); | 		Integer fkModule = bean.getModule() == null ? null : bean.getModule().getPk(); | ||||||
| 		Integer fkJob = bean.getActivity() == null ? null : bean.getActivity().getPk(); | 		Integer fkJob = bean.getActivity() == null ? null : bean.getActivity().getPk(); | ||||||
| 		Integer fkLogin = getFkLogin(); | 		Integer fkLogin = getFkLogin(); | ||||||
|  |  | ||||||
| 		InsertValuesStep6<TDoneRecord, Timestamp, Timestamp, Integer, Integer, Integer, Integer> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			InsertValuesStep6<TDoneRecord, Timestamp, Timestamp, Integer, Integer, Integer, Integer> sql = jooq | ||||||
| 			.insertInto(T_DONE,  | 			// @formatter:off | ||||||
| 									T_DONE.TIME_FROM,  | 				.insertInto(T_DONE,  | ||||||
| 									T_DONE.TIME_UNTIL,  | 										T_DONE.TIME_FROM,  | ||||||
| 									T_DONE.FK_PROJECT,  | 										T_DONE.TIME_UNTIL,  | ||||||
| 									T_DONE.FK_MODULE,  | 										T_DONE.FK_PROJECT,  | ||||||
| 									T_DONE.FK_JOB, | 										T_DONE.FK_MODULE,  | ||||||
| 									T_DONE.FK_LOGIN) | 										T_DONE.FK_JOB, | ||||||
| 			.values(bean.getTimeFrom(), bean.getTimeUntil(), fkProject, fkModule, fkJob, fkLogin); | 										T_DONE.FK_LOGIN) | ||||||
| 		// @formatter:on | 				.values(bean.getTimeFrom(), bean.getTimeUntil(), fkProject, fkModule, fkJob, fkLogin); | ||||||
| 		LOGGER.debug(sql.toString()); | 			// @formatter:on | ||||||
| 		sql.execute(); | 			LOGGER.debug(sql.toString()); | ||||||
|  | 			sql.execute(); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| 	 * update bean in t_done | 	 * update bean in t_done | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @param bean | 	 * @param bean | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public void update(DoneBean bean) throws DataAccessException { | 	public void update(DoneBean bean) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		UpdateConditionStep<TDoneRecord> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			UpdateConditionStep<TDoneRecord> sql = jooq | ||||||
| 			.update(T_DONE) | 			// @formatter:off | ||||||
| 			.set(T_DONE.TIME_FROM, bean.getTimeFrom()) | 				.update(T_DONE) | ||||||
| 			.set(T_DONE.TIME_UNTIL, bean.getTimeUntil()) | 				.set(T_DONE.TIME_FROM, bean.getTimeFrom()) | ||||||
| 			.set(T_DONE.FK_PROJECT, bean.getProject() == null ? null : bean.getProject().getPk()) | 				.set(T_DONE.TIME_UNTIL, bean.getTimeUntil()) | ||||||
| 			.set(T_DONE.FK_JOB, bean.getActivity() == null ? null : bean.getActivity().getPk()) | 				.set(T_DONE.FK_PROJECT, bean.getProject() == null ? null : bean.getProject().getPk()) | ||||||
| 			.set(T_DONE.FK_MODULE, bean.getModule() == null ? null : bean.getModule().getPk()) | 				.set(T_DONE.FK_JOB, bean.getActivity() == null ? null : bean.getActivity().getPk()) | ||||||
| 			.where(T_DONE.PK.eq(bean.getPk())); | 				.set(T_DONE.FK_MODULE, bean.getModule() == null ? null : bean.getModule().getPk()) | ||||||
| 		// @formatter:on | 				.where(T_DONE.PK.eq(bean.getPk())); | ||||||
| 		LOGGER.debug(sql.toString()); | 			// @formatter:on | ||||||
| 		sql.execute(); | 			LOGGER.debug(sql.toString()); | ||||||
|  | 			sql.execute(); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| 	 * delete bean from t_done | 	 * delete bean from t_done | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @param bean | 	 * @param bean | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public void delete(DoneBean bean) throws DataAccessException { | 	public void delete(DoneBean bean) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		DeleteConditionStep<TDoneRecord> sql = getJooq().deleteFrom(T_DONE).where(T_DONE.PK.eq(bean.getPk())); | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		LOGGER.debug(sql.toString()); | 			DeleteConditionStep<TDoneRecord> sql = jooq.deleteFrom(T_DONE).where(T_DONE.PK.eq(bean.getPk())); | ||||||
| 		sql.execute(); | 			LOGGER.debug(sql.toString()); | ||||||
|  | 			sql.execute(); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| @@ -227,28 +256,33 @@ public class DoneGateway extends JooqGateway { | |||||||
| 	 * @param day | 	 * @param day | ||||||
| 	 *          the day | 	 *          the day | ||||||
| 	 * @return the day summary if found, an empty map otherwise | 	 * @return the day summary if found, an empty map otherwise | ||||||
|  | 	 * @throws SQLException  | ||||||
|  | 	 * @throws ClassNotFoundException  | ||||||
|  | 	 * @throws DataAccessException  | ||||||
| 	 */ | 	 */ | ||||||
| 	public WholeDaySummaryBean getDaySummary(Date day) { | 	public WholeDaySummaryBean getDaySummary(Date day) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		SelectConditionStep<Record4<String, String, String, String>> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			SelectConditionStep<Record4<String, String, String, String>> sql = jooq | ||||||
| 			.select(V_TOTALOFDAY.STARTTIME, | 			// @formatter:off | ||||||
| 							V_TOTALOFDAY.ENDTIME, | 				.select(V_TOTALOFDAY.STARTTIME, | ||||||
| 					    V_TOTALOFDAY.WORKTIME, | 								V_TOTALOFDAY.ENDTIME, | ||||||
| 					    V_TOTALOFDAY.BREAKTIME) | 						    V_TOTALOFDAY.WORKTIME, | ||||||
| 			.from(V_TOTALOFDAY) | 						    V_TOTALOFDAY.BREAKTIME) | ||||||
| 			.where(V_TOTALOFDAY.DAY.eq(new SimpleDateFormat("yyyy-MM-dd").format(day))) | 				.from(V_TOTALOFDAY) | ||||||
| 			.and(V_TOTALOFDAY.FK_LOGIN.eq(getFkLogin())); | 				.where(V_TOTALOFDAY.DAY.eq(new SimpleDateFormat("yyyy-MM-dd").format(day))) | ||||||
| 		// @formatter:on | 				.and(V_TOTALOFDAY.FK_LOGIN.eq(getFkLogin())); | ||||||
| 		LOGGER.debug(sql.toString()); | 			// @formatter:on | ||||||
| 		Record r = sql.fetchOne(); | 			LOGGER.debug(sql.toString()); | ||||||
| 		if (r != null) { | 			Record r = sql.fetchOne(); | ||||||
| 			String startTime = r.get(V_TOTALOFDAY.STARTTIME); | 			if (r != null) { | ||||||
| 			String endTime = r.get(V_TOTALOFDAY.ENDTIME); | 				String startTime = r.get(V_TOTALOFDAY.STARTTIME); | ||||||
| 			String workTime = r.get(V_TOTALOFDAY.WORKTIME); | 				String endTime = r.get(V_TOTALOFDAY.ENDTIME); | ||||||
| 			String breakTime = r.get(V_TOTALOFDAY.BREAKTIME); | 				String workTime = r.get(V_TOTALOFDAY.WORKTIME); | ||||||
| 			return new WholeDaySummaryBean(startTime, endTime, workTime, breakTime); | 				String breakTime = r.get(V_TOTALOFDAY.BREAKTIME); | ||||||
|  | 				return new WholeDaySummaryBean(startTime, endTime, workTime, breakTime); | ||||||
|  | 			} | ||||||
|  | 			return new WholeDaySummaryBean("", "", "", ""); | ||||||
| 		} | 		} | ||||||
| 		return new WholeDaySummaryBean("", "", "", ""); |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| @@ -257,76 +291,86 @@ public class DoneGateway extends JooqGateway { | |||||||
| 	 * @param day | 	 * @param day | ||||||
| 	 *          the day | 	 *          the day | ||||||
| 	 * @return list of found jobs; an empty list at least | 	 * @return list of found jobs; an empty list at least | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
|  | 	 * @throws DataAccessException | ||||||
| 	 */ | 	 */ | ||||||
| 	public List<DailySummaryBean> getAllJobs(Date day) { | 	public List<DailySummaryBean> getAllJobs(Date day) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		SelectConditionStep<Record4<String, String, String, String>> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			SelectConditionStep<Record4<String, String, String, String>> sql = jooq | ||||||
| 			.select(V_TASKLIST.DURATION, | 			// @formatter:off | ||||||
| 							V_TASKLIST.PROJECT_NAME, | 				.select(V_TASKLIST.DURATION, | ||||||
| 							V_TASKLIST.MODULE_NAME, | 								V_TASKLIST.PROJECT_NAME, | ||||||
| 							V_TASKLIST.JOB_NAME) | 								V_TASKLIST.MODULE_NAME, | ||||||
| 			.from(V_TASKLIST) | 								V_TASKLIST.JOB_NAME) | ||||||
| 			.where(V_TASKLIST.DAY.eq(new SimpleDateFormat("yyyy-MM-dd").format(day))) | 				.from(V_TASKLIST) | ||||||
| 			.and(V_TASKLIST.FK_LOGIN.eq(getFkLogin())); | 				.where(V_TASKLIST.DAY.eq(new SimpleDateFormat("yyyy-MM-dd").format(day))) | ||||||
| 		// @formatter:on | 				.and(V_TASKLIST.FK_LOGIN.eq(getFkLogin())); | ||||||
| 		LOGGER.debug(sql.toString()); | 			// @formatter:on | ||||||
| 		List<DailySummaryBean> list = new ArrayList<>(); | 			LOGGER.debug(sql.toString()); | ||||||
| 		for (Record4<String, String, String, String> r : sql.fetch()) { | 			List<DailySummaryBean> list = new ArrayList<>(); | ||||||
| 			String duration = r.get(V_TASKLIST.DURATION); | 			for (Record4<String, String, String, String> r : sql.fetch()) { | ||||||
| 			String projectName = r.get(V_TASKLIST.PROJECT_NAME); | 				String duration = r.get(V_TASKLIST.DURATION); | ||||||
| 			String moduleName = r.get(V_TASKLIST.MODULE_NAME); | 				String projectName = r.get(V_TASKLIST.PROJECT_NAME); | ||||||
| 			String jobName = r.get(V_TASKLIST.JOB_NAME); | 				String moduleName = r.get(V_TASKLIST.MODULE_NAME); | ||||||
| 			list.add(new DailySummaryBean(projectName, moduleName, jobName, duration)); | 				String jobName = r.get(V_TASKLIST.JOB_NAME); | ||||||
|  | 				list.add(new DailySummaryBean(projectName, moduleName, jobName, duration)); | ||||||
|  | 			} | ||||||
|  | 			return list; | ||||||
| 		} | 		} | ||||||
| 		return list; |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| 	 * get json representation of all calendar events of user | 	 * get json representation of all calendar events of user | ||||||
| 	 *  | 	 *  | ||||||
| 	 * @return | 	 * @return | ||||||
|  | 	 * @throws SQLException  | ||||||
|  | 	 * @throws ClassNotFoundException  | ||||||
|  | 	 * @throws DataAccessException  | ||||||
| 	 */ | 	 */ | ||||||
| 	public String getAllCalendarEvents() { | 	public String getAllCalendarEvents() throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		SelectConditionStep<Record5<Timestamp, Timestamp, String, String, String>> sql = getJooq() | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		// @formatter:off | 			SelectConditionStep<Record5<Timestamp, Timestamp, String, String, String>> sql = jooq | ||||||
| 			.select(T_DONE.TIME_FROM, | 			// @formatter:off | ||||||
| 							T_DONE.TIME_UNTIL, | 				.select(T_DONE.TIME_FROM, | ||||||
| 							T_PROJECT.NAME, | 								T_DONE.TIME_UNTIL, | ||||||
| 							T_MODULE.NAME, | 								T_PROJECT.NAME, | ||||||
| 							T_JOB.NAME) | 								T_MODULE.NAME, | ||||||
| 			.from(T_DONE) | 								T_JOB.NAME) | ||||||
| 			.leftJoin(T_PROJECT).on(T_PROJECT.PK.eq(T_DONE.FK_PROJECT)) | 				.from(T_DONE) | ||||||
| 			.leftJoin(T_MODULE).on(T_MODULE.PK.eq(T_DONE.FK_MODULE)) | 				.leftJoin(T_PROJECT).on(T_PROJECT.PK.eq(T_DONE.FK_PROJECT)) | ||||||
| 			.leftJoin(T_JOB).on(T_JOB.PK.eq(T_DONE.FK_JOB)) | 				.leftJoin(T_MODULE).on(T_MODULE.PK.eq(T_DONE.FK_MODULE)) | ||||||
| 			.where(T_DONE.FK_LOGIN.eq(getFkLogin())); | 				.leftJoin(T_JOB).on(T_JOB.PK.eq(T_DONE.FK_JOB)) | ||||||
| 		// @formatter:on | 				.where(T_DONE.FK_LOGIN.eq(getFkLogin())); | ||||||
| 		LOGGER.debug(sql.toString()); | 			// @formatter:on | ||||||
| 		FullCalendarEventList list = new FullCalendarEventList(); | 			LOGGER.debug(sql.toString()); | ||||||
| 		for (Record r : sql.fetch()) { | 			FullCalendarEventList list = new FullCalendarEventList(); | ||||||
| 			String projectName = r.get(T_PROJECT.NAME); | 			for (Record r : sql.fetch()) { | ||||||
| 			String moduleName = r.get(T_MODULE.NAME); | 				String projectName = r.get(T_PROJECT.NAME); | ||||||
| 			String jobName = r.get(T_JOB.NAME); | 				String moduleName = r.get(T_MODULE.NAME); | ||||||
| 			Date timeFrom = r.get(T_DONE.TIME_FROM); | 				String jobName = r.get(T_JOB.NAME); | ||||||
| 			Date timeUntil = r.get(T_DONE.TIME_UNTIL); | 				Date timeFrom = r.get(T_DONE.TIME_FROM); | ||||||
|  | 				Date timeUntil = r.get(T_DONE.TIME_UNTIL); | ||||||
|  |  | ||||||
| 			StringBuilder buf = new StringBuilder(); | 				StringBuilder buf = new StringBuilder(); | ||||||
| 			buf.append(projectName); | 				buf.append(projectName); | ||||||
| 			buf.append(", "); | 				buf.append(", "); | ||||||
| 			buf.append(moduleName); | 				buf.append(moduleName); | ||||||
| 			buf.append(": "); | 				buf.append(": "); | ||||||
| 			buf.append(jobName); | 				buf.append(jobName); | ||||||
|  |  | ||||||
| 			FullCalendarEventBean bean = new FullCalendarEventBean(buf.toString(), timeFrom) { | 				FullCalendarEventBean bean = new FullCalendarEventBean(buf.toString(), timeFrom) { | ||||||
| 				private static final long serialVersionUID = 1L; | 					private static final long serialVersionUID = 1L; | ||||||
|  |  | ||||||
| 				@Override | 					@Override | ||||||
| 				public void addExtendedFields(StringBuilder buf) { | 					public void addExtendedFields(StringBuilder buf) { | ||||||
| 				} | 					} | ||||||
| 			}; | 				}; | ||||||
| 			bean.setEnd(timeUntil); | 				bean.setEnd(timeUntil); | ||||||
| 			bean.setColor(new RgbColor().determineRgbColor(projectName, moduleName, jobName)); | 				bean.setColor(new RgbColor().determineRgbColor(projectName, moduleName, jobName)); | ||||||
| 			list.getList().add(bean); | 				list.getList().add(bean); | ||||||
|  | 			} | ||||||
|  | 			return list.toJson(); | ||||||
| 		} | 		} | ||||||
| 		return list.toJson(); |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| package de.jottyfan.timetrack.modules.done; | package de.jottyfan.timetrack.modules.done; | ||||||
|  |  | ||||||
| import java.io.Serializable; | import java.io.Serializable; | ||||||
|  | import java.sql.SQLException; | ||||||
| import java.text.SimpleDateFormat; | import java.text.SimpleDateFormat; | ||||||
| import java.time.LocalDateTime; | import java.time.LocalDateTime; | ||||||
| import java.time.ZoneId; | import java.time.ZoneId; | ||||||
| @@ -13,11 +14,11 @@ import java.util.TimeZone; | |||||||
|  |  | ||||||
| import javax.enterprise.context.SessionScoped; | import javax.enterprise.context.SessionScoped; | ||||||
| import javax.faces.application.FacesMessage; | import javax.faces.application.FacesMessage; | ||||||
| import javax.faces.context.FacesContext; |  | ||||||
| import javax.inject.Named; | import javax.inject.Named; | ||||||
|  |  | ||||||
| import org.jooq.exception.DataAccessException; | import org.jooq.exception.DataAccessException; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TJobRecord; | import de.jottyfan.timetrack.db.done.tables.records.TJobRecord; | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord; | import de.jottyfan.timetrack.db.done.tables.records.TModuleRecord; | ||||||
| import de.jottyfan.timetrack.db.done.tables.records.TProjectRecord; | import de.jottyfan.timetrack.db.done.tables.records.TProjectRecord; | ||||||
| @@ -44,7 +45,7 @@ public class DoneModel implements Model, Serializable { | |||||||
| 	private Date day; | 	private Date day; | ||||||
| 	private String calendarEvents; | 	private String calendarEvents; | ||||||
|  |  | ||||||
| 	public boolean init(FacesContext facesContext) { | 	public boolean init(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			day = day == null ? new Date() : day; | 			day = day == null ? new Date() : day; | ||||||
| 			beans = getAllOfDay(facesContext, day); | 			beans = getAllOfDay(facesContext, day); | ||||||
| @@ -56,13 +57,13 @@ public class DoneModel implements Model, Serializable { | |||||||
| 			allJobs = gw.getAllJobs(day); | 			allJobs = gw.getAllJobs(day); | ||||||
| 			calendarEvents = gw.getAllCalendarEvents(); | 			calendarEvents = gw.getAllCalendarEvents(); | ||||||
| 			return true; | 			return true; | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean loadDefaults(FacesContext facesContext) { | 	public boolean loadDefaults(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			defineTimes(); | 			defineTimes(); | ||||||
| 			return true; | 			return true; | ||||||
| @@ -126,37 +127,39 @@ public class DoneModel implements Model, Serializable { | |||||||
| 	 * @param login | 	 * @param login | ||||||
| 	 *          the user to look up for | 	 *          the user to look up for | ||||||
| 	 * @return all entries | 	 * @return all entries | ||||||
|  | 	 * @throws SQLException  | ||||||
|  | 	 * @throws ClassNotFoundException  | ||||||
| 	 */ | 	 */ | ||||||
| 	private List<DoneBean> getAllOfDay(FacesContext facesContext, Date day) throws DataAccessException { | 	private List<DoneBean> getAllOfDay(JooqFacesContext facesContext, Date day) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 		LocalDateTime ldt = day.toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime(); | 		LocalDateTime ldt = day.toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime(); | ||||||
| 		return new DoneGateway(facesContext).getAll(ldt); | 		return new DoneGateway(facesContext).getAll(ldt); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean insert(FacesContext facesContext) { | 	public boolean insert(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			new DoneGateway(facesContext).insert(bean); | 			new DoneGateway(facesContext).insert(bean); | ||||||
| 			return true; | 			return true; | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean update(FacesContext facesContext) { | 	public boolean update(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			new DoneGateway(facesContext).update(bean); | 			new DoneGateway(facesContext).update(bean); | ||||||
| 			return true; | 			return true; | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean delete(FacesContext facesContext) { | 	public boolean delete(JooqFacesContext facesContext) { | ||||||
| 		try { | 		try { | ||||||
| 			new DoneGateway(facesContext).delete(bean); | 			new DoneGateway(facesContext).delete(bean); | ||||||
| 			return true; | 			return true; | ||||||
| 		} catch (DataAccessException e) { | 		} catch (DataAccessException | ClassNotFoundException | SQLException e) { | ||||||
| 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
|   | |||||||
| @@ -7,6 +7,7 @@ import javax.faces.context.FacesContext; | |||||||
| import javax.inject.Inject; | import javax.inject.Inject; | ||||||
| import javax.inject.Named; | import javax.inject.Named; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.help.Navigation; | import de.jottyfan.timetrack.help.Navigation; | ||||||
| import de.jottyfan.timetrack.help.Pages; | import de.jottyfan.timetrack.help.Pages; | ||||||
| import de.jottyfan.timetrack.modules.ControlInterface; | import de.jottyfan.timetrack.modules.ControlInterface; | ||||||
| @@ -33,7 +34,7 @@ public class NoteControl extends Navigation implements ControlInterface, Seriali | |||||||
| 	 | 	 | ||||||
| 	public String toList() | 	public String toList() | ||||||
| 	{ | 	{ | ||||||
| 		boolean ready = model.init(FacesContext.getCurrentInstance()); | 		boolean ready = model.init((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? navigateTo(Pages.NOTE_LIST) : ""; | 		return ready ? navigateTo(Pages.NOTE_LIST) : ""; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -50,19 +51,19 @@ public class NoteControl extends Navigation implements ControlInterface, Seriali | |||||||
|  |  | ||||||
| 	public String doAdd() | 	public String doAdd() | ||||||
| 	{ | 	{ | ||||||
| 		boolean ready = model.add(FacesContext.getCurrentInstance()); | 		boolean ready = model.add((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : toItem(model.getBean()); | 		return ready ? toList() : toItem(model.getBean()); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String doUpdate() | 	public String doUpdate() | ||||||
| 	{ | 	{ | ||||||
| 		boolean ready = model.update(FacesContext.getCurrentInstance()); | 		boolean ready = model.update((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : toItem(model.getBean()); | 		return ready ? toList() : toItem(model.getBean()); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public String doDelete() | 	public String doDelete() | ||||||
| 	{ | 	{ | ||||||
| 		boolean ready = model.delete(FacesContext.getCurrentInstance()); | 		boolean ready = model.delete((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 		return ready ? toList() : toItem(model.getBean()); | 		return ready ? toList() : toItem(model.getBean()); | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
| @@ -98,6 +99,6 @@ public class NoteControl extends Navigation implements ControlInterface, Seriali | |||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
| 	public Long getAmount() { | 	public Long getAmount() { | ||||||
| 		return model.getAmount(FacesContext.getCurrentInstance()); | 		return model.getAmount((JooqFacesContext) FacesContext.getCurrentInstance()); | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -2,13 +2,13 @@ package de.jottyfan.timetrack.modules.note; | |||||||
|  |  | ||||||
| import static de.jottyfan.timetrack.db.note.Tables.T_NOTE; | import static de.jottyfan.timetrack.db.note.Tables.T_NOTE; | ||||||
|  |  | ||||||
|  | import java.sql.SQLException; | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| import java.util.List; | import java.util.List; | ||||||
|  |  | ||||||
| import javax.faces.context.FacesContext; |  | ||||||
|  |  | ||||||
| import org.apache.logging.log4j.LogManager; | import org.apache.logging.log4j.LogManager; | ||||||
| import org.apache.logging.log4j.Logger; | import org.apache.logging.log4j.Logger; | ||||||
|  | import org.jooq.DSLContext; | ||||||
| import org.jooq.DeleteConditionStep; | import org.jooq.DeleteConditionStep; | ||||||
| import org.jooq.InsertValuesStep4; | import org.jooq.InsertValuesStep4; | ||||||
| import org.jooq.Record; | import org.jooq.Record; | ||||||
| @@ -16,6 +16,7 @@ import org.jooq.SelectJoinStep; | |||||||
| import org.jooq.UpdateConditionStep; | import org.jooq.UpdateConditionStep; | ||||||
| import org.jooq.exception.DataAccessException; | import org.jooq.exception.DataAccessException; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.db.note.enums.EnumCategory; | import de.jottyfan.timetrack.db.note.enums.EnumCategory; | ||||||
| import de.jottyfan.timetrack.db.note.enums.EnumNotetype; | import de.jottyfan.timetrack.db.note.enums.EnumNotetype; | ||||||
| import de.jottyfan.timetrack.db.note.tables.records.TNoteRecord; | import de.jottyfan.timetrack.db.note.tables.records.TNoteRecord; | ||||||
| @@ -26,12 +27,10 @@ import de.jottyfan.timetrack.modules.JooqGateway; | |||||||
|  * @author henkej |  * @author henkej | ||||||
|  * |  * | ||||||
|  */ |  */ | ||||||
| public class NoteGateway extends JooqGateway | public class NoteGateway extends JooqGateway { | ||||||
| { |  | ||||||
| 	private static final Logger LOGGER = LogManager.getLogger(NoteGateway.class); | 	private static final Logger LOGGER = LogManager.getLogger(NoteGateway.class); | ||||||
|  |  | ||||||
| 	public NoteGateway(FacesContext facesContext) | 	public NoteGateway(JooqFacesContext facesContext) { | ||||||
| 	{ |  | ||||||
| 		super(facesContext); | 		super(facesContext); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -40,14 +39,24 @@ public class NoteGateway extends JooqGateway | |||||||
| 	 *  | 	 *  | ||||||
| 	 * @param noteBean | 	 * @param noteBean | ||||||
| 	 * @throws DataAccessException | 	 * @throws DataAccessException | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 * @returns amount of affected rows in db | 	 * @returns amount of affected rows in db | ||||||
| 	 */ | 	 */ | ||||||
| 	public void insert(NoteBean bean) throws DataAccessException | 	public void insert(NoteBean bean) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 	{ | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		InsertValuesStep4<TNoteRecord, String, EnumCategory, EnumNotetype, String> sql = getJooq().insertInto(T_NOTE, T_NOTE.TITLE, T_NOTE.CATEGORY, T_NOTE.NOTETYPE, T_NOTE.CONTENT).values(bean.getTitle(), bean.getCategory(), bean.getType(), | 			InsertValuesStep4<TNoteRecord, String, EnumCategory, EnumNotetype, String> sql = jooq | ||||||
| 				bean.getContent()); | 			// @formatter:off | ||||||
| 		LOGGER.debug(sql.toString()); | 				.insertInto(T_NOTE,  | ||||||
| 		sql.execute(); | 										T_NOTE.TITLE,  | ||||||
|  | 										T_NOTE.CATEGORY,  | ||||||
|  | 										T_NOTE.NOTETYPE,  | ||||||
|  | 										T_NOTE.CONTENT) | ||||||
|  | 				.values(bean.getTitle(), bean.getCategory(), bean.getType(), bean.getContent()); | ||||||
|  | 		  // @formatter:on | ||||||
|  | 			LOGGER.debug(sql.toString()); | ||||||
|  | 			sql.execute(); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| @@ -55,12 +64,21 @@ public class NoteGateway extends JooqGateway | |||||||
| 	 *  | 	 *  | ||||||
| 	 * @param bean | 	 * @param bean | ||||||
| 	 * @throws DataAccessException | 	 * @throws DataAccessException | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public void update(NoteBean bean) throws DataAccessException | 	public void update(NoteBean bean) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 	{ | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		UpdateConditionStep<TNoteRecord> sql = getJooq().update(T_NOTE).set(T_NOTE.TITLE, bean.getTitle()).set(T_NOTE.CONTENT, bean.getContent()).where(T_NOTE.PK.eq(bean.getPk())); | 			UpdateConditionStep<TNoteRecord> sql = jooq | ||||||
| 		LOGGER.debug(sql.toString()); | 			// @formatter:off | ||||||
| 		sql.execute(); | 				.update(T_NOTE) | ||||||
|  | 				.set(T_NOTE.TITLE, bean.getTitle()) | ||||||
|  | 				.set(T_NOTE.CONTENT, bean.getContent()) | ||||||
|  | 				.where(T_NOTE.PK.eq(bean.getPk())); | ||||||
|  | 			// @formatter:on | ||||||
|  | 			LOGGER.debug(sql.toString()); | ||||||
|  | 			sql.execute(); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| @@ -68,12 +86,15 @@ public class NoteGateway extends JooqGateway | |||||||
| 	 *  | 	 *  | ||||||
| 	 * @param pk | 	 * @param pk | ||||||
| 	 * @throws DataAccessException | 	 * @throws DataAccessException | ||||||
|  | 	 * @throws SQLException | ||||||
|  | 	 * @throws ClassNotFoundException | ||||||
| 	 */ | 	 */ | ||||||
| 	public void delete(Integer pk) throws DataAccessException | 	public void delete(Integer pk) throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 	{ | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		DeleteConditionStep<TNoteRecord> sql = getJooq().deleteFrom(T_NOTE).where(T_NOTE.PK.eq(pk)); | 			DeleteConditionStep<TNoteRecord> sql = jooq.deleteFrom(T_NOTE).where(T_NOTE.PK.eq(pk)); | ||||||
| 		LOGGER.debug(sql.toString()); | 			LOGGER.debug(sql.toString()); | ||||||
| 		sql.execute(); | 			sql.execute(); | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| @@ -81,22 +102,24 @@ public class NoteGateway extends JooqGateway | |||||||
| 	 *  | 	 *  | ||||||
| 	 * @return | 	 * @return | ||||||
| 	 * @throws DataAccessException | 	 * @throws DataAccessException | ||||||
|  | 	 * @throws SQLException  | ||||||
|  | 	 * @throws ClassNotFoundException  | ||||||
| 	 */ | 	 */ | ||||||
| 	public List<NoteBean> getAll() throws DataAccessException | 	public List<NoteBean> getAll() throws DataAccessException, ClassNotFoundException, SQLException { | ||||||
| 	{ | 		try (DSLContext jooq = getJooq()) { | ||||||
| 		SelectJoinStep<Record> sql = getJooq().select().from(T_NOTE); | 			SelectJoinStep<Record> sql = jooq.select().from(T_NOTE); | ||||||
| 		LOGGER.debug(sql.toString()); | 			LOGGER.debug(sql.toString()); | ||||||
| 		List<NoteBean> list = new ArrayList<>(); | 			List<NoteBean> list = new ArrayList<>(); | ||||||
| 		for (Record r : sql.fetch()) | 			for (Record r : sql.fetch()) { | ||||||
| 		{ | 				NoteBean bean = new NoteBean(r.get(T_NOTE.PK)); | ||||||
| 			NoteBean bean = new NoteBean(r.get(T_NOTE.PK)); | 				bean.setTitle(r.get(T_NOTE.TITLE)); | ||||||
| 			bean.setTitle(r.get(T_NOTE.TITLE)); | 				bean.setCategory(r.get(T_NOTE.CATEGORY)); | ||||||
| 			bean.setCategory(r.get(T_NOTE.CATEGORY)); | 				bean.setContent(r.get(T_NOTE.CONTENT)); | ||||||
| 			bean.setContent(r.get(T_NOTE.CONTENT)); | 				bean.setType(r.get(T_NOTE.NOTETYPE)); | ||||||
| 			bean.setType(r.get(T_NOTE.NOTETYPE)); | 				bean.setLastchange(r.get(T_NOTE.LASTCHANGE)); | ||||||
| 			bean.setLastchange(r.get(T_NOTE.LASTCHANGE)); | 				list.add(bean); | ||||||
| 			list.add(bean); | 			} | ||||||
|  | 			return list; | ||||||
| 		} | 		} | ||||||
| 		return list; |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,15 +1,16 @@ | |||||||
| package de.jottyfan.timetrack.modules.note; | package de.jottyfan.timetrack.modules.note; | ||||||
|  |  | ||||||
| import java.io.Serializable; | import java.io.Serializable; | ||||||
|  | import java.sql.SQLException; | ||||||
| import java.util.List; | import java.util.List; | ||||||
|  |  | ||||||
| import javax.enterprise.context.SessionScoped; | import javax.enterprise.context.SessionScoped; | ||||||
| import javax.faces.application.FacesMessage; | import javax.faces.application.FacesMessage; | ||||||
| import javax.faces.context.FacesContext; |  | ||||||
| import javax.inject.Named; | import javax.inject.Named; | ||||||
|  |  | ||||||
| import org.jooq.exception.DataAccessException; | import org.jooq.exception.DataAccessException; | ||||||
|  |  | ||||||
|  | import de.jooqFaces.JooqFacesContext; | ||||||
| import de.jottyfan.timetrack.db.note.Tables; | import de.jottyfan.timetrack.db.note.Tables; | ||||||
| import de.jottyfan.timetrack.modules.Model; | import de.jottyfan.timetrack.modules.Model; | ||||||
|  |  | ||||||
| @@ -27,65 +28,70 @@ public class NoteModel implements Model, Serializable | |||||||
| 	private List<NoteBean> beans; | 	private List<NoteBean> beans; | ||||||
| 	private NoteBean bean; | 	private NoteBean bean; | ||||||
|  |  | ||||||
| 	public boolean init(FacesContext facesContext) | 	public boolean init(JooqFacesContext facesContext) | ||||||
| 	{ | 	{ | ||||||
| 		try | 		try | ||||||
| 		{ | 		{ | ||||||
| 			beans = new NoteGateway(facesContext).getAll(); | 			beans = new NoteGateway(facesContext).getAll(); | ||||||
| 			return true; | 			return true; | ||||||
| 		} | 		} | ||||||
| 		catch (DataAccessException e) | 		catch (DataAccessException | ClassNotFoundException | SQLException e) | ||||||
| 		{ | 		{ | ||||||
| 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean add(FacesContext facesContext) | 	public boolean add(JooqFacesContext facesContext) | ||||||
| 	{ | 	{ | ||||||
| 		try | 		try | ||||||
| 		{ | 		{ | ||||||
| 			new NoteGateway(facesContext).insert(bean); | 			new NoteGateway(facesContext).insert(bean); | ||||||
| 			return true; | 			return true; | ||||||
| 		} | 		} | ||||||
| 		catch (DataAccessException e) | 		catch (DataAccessException | ClassNotFoundException | SQLException e) | ||||||
| 		{ | 		{ | ||||||
| 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean update(FacesContext facesContext) | 	public boolean update(JooqFacesContext facesContext) | ||||||
| 	{ | 	{ | ||||||
| 		try | 		try | ||||||
| 		{ | 		{ | ||||||
| 			new NoteGateway(facesContext).update(bean); | 			new NoteGateway(facesContext).update(bean); | ||||||
| 			return true; | 			return true; | ||||||
| 		} | 		} | ||||||
| 		catch (DataAccessException e) | 		catch (DataAccessException | ClassNotFoundException | SQLException e) | ||||||
| 		{ | 		{ | ||||||
| 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public boolean delete(FacesContext facesContext) | 	public boolean delete(JooqFacesContext facesContext) | ||||||
| 	{ | 	{ | ||||||
| 		try | 		try | ||||||
| 		{ | 		{ | ||||||
| 			new NoteGateway(facesContext).delete(bean.getPk()); | 			new NoteGateway(facesContext).delete(bean.getPk()); | ||||||
| 			return true; | 			return true; | ||||||
| 		} | 		} | ||||||
| 		catch (DataAccessException e) | 		catch (DataAccessException | ClassNotFoundException | SQLException e) | ||||||
| 		{ | 		{ | ||||||
| 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
| 			return false; | 			return false; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
| 	public Long getAmount(FacesContext facesContext) | 	public Long getAmount(JooqFacesContext facesContext) | ||||||
| 	{ | 	{ | ||||||
| 		return new NoteGateway(facesContext).getAmount(Tables.T_NOTE); | 		try { | ||||||
|  | 			return new NoteGateway(facesContext).getAmount(Tables.T_NOTE); | ||||||
|  | 		} catch (ClassNotFoundException | SQLException e) { | ||||||
|  | 			facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "error", e.getMessage())); | ||||||
|  | 			return -1l; | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
| 	@Override | 	@Override | ||||||
|   | |||||||
| @@ -4,10 +4,6 @@ | |||||||
| 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||||
| 	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" | 	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" | ||||||
| 	version="2.0"> | 	version="2.0"> | ||||||
| 	<lifecycle> |  | ||||||
| 		<phase-listener>de.jooqFaces.JooqFacesRenderResponsePhaseListener</phase-listener> |  | ||||||
| 		<phase-listener>de.jooqFaces.JooqFacesRestoreViewPhaseListener</phase-listener> |  | ||||||
| 	</lifecycle> |  | ||||||
| 	<factory> | 	<factory> | ||||||
| 		<faces-context-factory>de.jooqFaces.JooqFacesContextFactory</faces-context-factory> | 		<faces-context-factory>de.jooqFaces.JooqFacesContextFactory</faces-context-factory> | ||||||
| 	</factory> | 	</factory> | ||||||
|   | |||||||
| @@ -61,7 +61,7 @@ | |||||||
| 	</context-param> | 	</context-param> | ||||||
| 	<context-param> | 	<context-param> | ||||||
| 		<param-name>jooqFacesProperties</param-name> | 		<param-name>jooqFacesProperties</param-name> | ||||||
| 		<param-value>/etc/tomcat8#/timetrack.properties</param-value> | 		<param-value>/etc/timetrack.properties</param-value> | ||||||
| 	</context-param> | 	</context-param> | ||||||
| 	<listener> | 	<listener> | ||||||
|     <listener-class>de.jooqFaces.PropertiesDeploymentListener</listener-class> |     <listener-class>de.jooqFaces.PropertiesDeploymentListener</listener-class> | ||||||
|   | |||||||
| @@ -19,18 +19,17 @@ | |||||||
|           </h:panelGrid> |           </h:panelGrid> | ||||||
|           <b:tabView> |           <b:tabView> | ||||||
|             <b:tab title="Liste"> |             <b:tab title="Liste"> | ||||||
|               <b:dataTable value="#{doneModel.beans}" var="b" border="false" info="false" paginated="false" searching="false" |               <b:dataTable value="#{doneModel.beans}" var="b" border="false" info="false" paginated="false" searching="false"> | ||||||
|                 styleClass="doneoverview"> |                 <b:dataTableColumn label="" style="width: 100px !important" orderable="false"> | ||||||
|                 <b:dataTableColumn label="" orderable="false"> |  | ||||||
|                   <b:commandButton action="#{doneControl.toDelete(b)}" value="Entfernen" look="danger" iconAwesome="trash" /> |                   <b:commandButton action="#{doneControl.toDelete(b)}" value="Entfernen" look="danger" iconAwesome="trash" /> | ||||||
|                 </b:dataTableColumn> |                 </b:dataTableColumn> | ||||||
|                 <b:dataTableColumn label="" value="#{b.timeSummary}" contentStyleClass="doneoverviewtext" style="min-width: 100px !important" orderable="false" /> |                 <b:dataTableColumn label="" value="#{b.timeSummary}" contentStyleClass="doneoverviewtext" style="width: 128px !important" orderable="false" /> | ||||||
|                 <b:dataTableColumn label="" value="#{b.projectName}" contentStyleClass="doneoverviewtextemph" orderable="false" /> |                 <b:dataTableColumn label="" value="#{b.projectName}" contentStyleClass="doneoverviewtextemph" style="width: 128px !important" orderable="false" /> | ||||||
|                 <b:dataTableColumn label="" value="#{b.timeDiff}" contentStyleClass="doneoverviewtextemph" orderable="false" /> |                 <b:dataTableColumn label="" value="#{b.timeDiff}" contentStyleClass="doneoverviewtextemph" style="width: 64px !important" orderable="false" /> | ||||||
|                 <b:dataTableColumn label="" orderable="false"> |                 <b:dataTableColumn label="" style="width: 100px !important" orderable="false"> | ||||||
|                   <b:commandButton action="#{doneControl.toEdit(b)}" value="Editieren" look="warning" iconAwesome="pencil" /> |                   <b:commandButton action="#{doneControl.toEdit(b)}" value="Editieren" look="warning" iconAwesome="pencil" /> | ||||||
|                 </b:dataTableColumn> |                 </b:dataTableColumn> | ||||||
|                 <b:dataTableColumn label="" value="#{b.moduleName}" contentStyleClass="doneoverviewtext" orderable="false" /> |                 <b:dataTableColumn label="" value="#{b.moduleName}" contentStyleClass="doneoverviewtext" style="width: 128px !important" orderable="false" /> | ||||||
|                 <b:dataTableColumn label="" value="#{b.jobName}" contentStyleClass="doneoverviewtext" orderable="false" /> |                 <b:dataTableColumn label="" value="#{b.jobName}" contentStyleClass="doneoverviewtext" orderable="false" /> | ||||||
|               </b:dataTable> |               </b:dataTable> | ||||||
|               <b:row rendered="#{doneModel.daySummary != null}"> |               <b:row rendered="#{doneModel.daySummary != null}"> | ||||||
|   | |||||||
| @@ -6,11 +6,6 @@ | |||||||
| 		!important; | 		!important; | ||||||
| } | } | ||||||
|  |  | ||||||
| .doneoverview { |  | ||||||
| 	max-width: 850px !important; |  | ||||||
| 	width: 850px !important; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .doneoverviewtext { | .doneoverviewtext { | ||||||
| 	font-size: 120%; | 	font-size: 120%; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| package de.jottyfan.timetrack.moduls.done; | package de.jottyfan.timetrack.moduls.done; | ||||||
|  |  | ||||||
| import static org.junit.Assert.assertEquals; | import static org.junit.jupiter.api.Assertions.assertEquals; | ||||||
|  |  | ||||||
| import java.time.LocalDateTime; | import java.time.LocalDateTime; | ||||||
|  |  | ||||||
| import org.junit.Test; | import org.junit.jupiter.api.Test; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.modules.done.DoneBean; | import de.jottyfan.timetrack.modules.done.DoneBean; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| package de.jottyfan.timetrack.moduls.done; | package de.jottyfan.timetrack.moduls.done; | ||||||
|  |  | ||||||
| import static org.junit.Assert.assertEquals; | import static org.junit.jupiter.api.Assertions.assertEquals; | ||||||
|  |  | ||||||
| import org.junit.Test; | import org.junit.jupiter.api.Test; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.modules.done.RgbColor; | import de.jottyfan.timetrack.modules.done.RgbColor; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| package de.jottyfan.timetrack.moduls.done; | package de.jottyfan.timetrack.moduls.done; | ||||||
|  |  | ||||||
| import static org.junit.Assert.assertEquals; | import static org.junit.jupiter.api.Assertions.assertEquals; | ||||||
|  |  | ||||||
| import org.junit.Test; | import org.junit.jupiter.api.Test; | ||||||
|  |  | ||||||
| import de.jottyfan.timetrack.modules.done.WholeDaySummaryBean; | import de.jottyfan.timetrack.modules.done.WholeDaySummaryBean; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user