From eaed27501e15ef4092c2997e57ecdadd8f923e63 Mon Sep 17 00:00:00 2001 From: lukaseder Date: Thu, 20 Jul 2017 13:04:29 +0200 Subject: [PATCH] Regenerated exmaple code --- .../java/org/jooq/example/db/h2/Public.java | 9 +- .../org/jooq/example/db/h2/Sequences.java | 13 ++- .../org/jooq/example/db/h2/tables/Author.java | 8 +- .../org/jooq/example/db/h2/tables/Book.java | 4 +- .../jooq/example/db/h2/tables/BookStore.java | 4 +- .../example/db/h2/tables/BookToBookStore.java | 4 +- .../db/h2/tables/records/AuthorRecord.java | 50 ++++++++++- .../db/h2/tables/records/BookRecord.java | 90 ++++++++++++++++++- .../db/h2/tables/records/BookStoreRecord.java | 10 ++- .../tables/records/BookToBookStoreRecord.java | 26 +++++- 10 files changed, 196 insertions(+), 22 deletions(-) diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/Public.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/Public.java index 862ef77d46..3eaf9ec9f4 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/Public.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/Public.java @@ -33,7 +33,7 @@ import org.jooq.impl.SchemaImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Public extends SchemaImpl { - private static final long serialVersionUID = -231148938; + private static final long serialVersionUID = 1858909872; /** * The reference instance of PUBLIC @@ -85,9 +85,10 @@ public class Public extends SchemaImpl { private final List> getSequences0() { return Arrays.>asList( - Sequences.SYSTEM_SEQUENCE_8CD71463_69CD_4A57_B8AB_B9985402B0A2, - Sequences.SYSTEM_SEQUENCE_A76C8A36_BAEB_4088_8A30_29365F363038, - Sequences.S_AUTHOR_ID); + Sequences.SYSTEM_SEQUENCE_BAAE77DE_8E0A_4B04_8632_BA38E2536BFD, + Sequences.SYSTEM_SEQUENCE_C32829E3_148C_42AA_A816_FCC9E789E824, + Sequences.S_AUTHOR_ID, + Sequences.S_BOOK_ID); } @Override diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/Sequences.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/Sequences.java index ed7985c498..d7c9715cde 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/Sequences.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/Sequences.java @@ -24,17 +24,22 @@ import org.jooq.impl.SequenceImpl; public class Sequences { /** - * The sequence PUBLIC.SYSTEM_SEQUENCE_8CD71463_69CD_4A57_B8AB_B9985402B0A2 + * The sequence PUBLIC.SYSTEM_SEQUENCE_BAAE77DE_8E0A_4B04_8632_BA38E2536BFD */ - public static final Sequence SYSTEM_SEQUENCE_8CD71463_69CD_4A57_B8AB_B9985402B0A2 = new SequenceImpl("SYSTEM_SEQUENCE_8CD71463_69CD_4A57_B8AB_B9985402B0A2", Public.PUBLIC, org.jooq.impl.SQLDataType.BIGINT); + public static final Sequence SYSTEM_SEQUENCE_BAAE77DE_8E0A_4B04_8632_BA38E2536BFD = new SequenceImpl("SYSTEM_SEQUENCE_BAAE77DE_8E0A_4B04_8632_BA38E2536BFD", Public.PUBLIC, org.jooq.impl.SQLDataType.BIGINT); /** - * The sequence PUBLIC.SYSTEM_SEQUENCE_A76C8A36_BAEB_4088_8A30_29365F363038 + * The sequence PUBLIC.SYSTEM_SEQUENCE_C32829E3_148C_42AA_A816_FCC9E789E824 */ - public static final Sequence SYSTEM_SEQUENCE_A76C8A36_BAEB_4088_8A30_29365F363038 = new SequenceImpl("SYSTEM_SEQUENCE_A76C8A36_BAEB_4088_8A30_29365F363038", Public.PUBLIC, org.jooq.impl.SQLDataType.BIGINT); + public static final Sequence SYSTEM_SEQUENCE_C32829E3_148C_42AA_A816_FCC9E789E824 = new SequenceImpl("SYSTEM_SEQUENCE_C32829E3_148C_42AA_A816_FCC9E789E824", Public.PUBLIC, org.jooq.impl.SQLDataType.BIGINT); /** * The sequence PUBLIC.S_AUTHOR_ID */ public static final Sequence S_AUTHOR_ID = new SequenceImpl("S_AUTHOR_ID", Public.PUBLIC, org.jooq.impl.SQLDataType.BIGINT); + + /** + * The sequence PUBLIC.S_BOOK_ID + */ + public static final Sequence S_BOOK_ID = new SequenceImpl("S_BOOK_ID", Public.PUBLIC, org.jooq.impl.SQLDataType.BIGINT); } diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/Author.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/Author.java index 1632e6328d..84642f032f 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/Author.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/Author.java @@ -39,7 +39,7 @@ import org.jooq.impl.TableImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Author extends TableImpl { - private static final long serialVersionUID = -259612025; + private static final long serialVersionUID = -228141913; /** * The reference instance of PUBLIC.AUTHOR @@ -62,12 +62,12 @@ public class Author extends TableImpl { /** * The column PUBLIC.AUTHOR.FIRST_NAME. */ - public final TableField FIRST_NAME = createField("FIRST_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); + public final TableField FIRST_NAME = createField("FIRST_NAME", org.jooq.impl.SQLDataType.VARCHAR(50), this, ""); /** * The column PUBLIC.AUTHOR.LAST_NAME. */ - public final TableField LAST_NAME = createField("LAST_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); + public final TableField LAST_NAME = createField("LAST_NAME", org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, ""); /** * The column PUBLIC.AUTHOR.DATE_OF_BIRTH. @@ -82,7 +82,7 @@ public class Author extends TableImpl { /** * The column PUBLIC.AUTHOR.ADDRESS. */ - public final TableField ADDRESS = createField("ADDRESS", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); + public final TableField ADDRESS = createField("ADDRESS", org.jooq.impl.SQLDataType.VARCHAR(50), this, ""); /** * Create a PUBLIC.AUTHOR table reference diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/Book.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/Book.java index fda516e6d9..2f18fc82dd 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/Book.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/Book.java @@ -40,7 +40,7 @@ import org.jooq.impl.TableImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Book extends TableImpl { - private static final long serialVersionUID = -350867238; + private static final long serialVersionUID = -973522990; /** * The reference instance of PUBLIC.BOOK @@ -78,7 +78,7 @@ public class Book extends TableImpl { /** * The column PUBLIC.BOOK.TITLE. */ - public final TableField TITLE = createField("TITLE", org.jooq.impl.SQLDataType.VARCHAR.length(400).nullable(false), this, ""); + public final TableField TITLE = createField("TITLE", org.jooq.impl.SQLDataType.VARCHAR(400).nullable(false), this, ""); /** * The column PUBLIC.BOOK.PUBLISHED_IN. diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/BookStore.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/BookStore.java index 6fe3c68a4b..3d6d08db93 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/BookStore.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/BookStore.java @@ -37,7 +37,7 @@ import org.jooq.impl.TableImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class BookStore extends TableImpl { - private static final long serialVersionUID = -1909450446; + private static final long serialVersionUID = 1798418760; /** * The reference instance of PUBLIC.BOOK_STORE @@ -55,7 +55,7 @@ public class BookStore extends TableImpl { /** * The column PUBLIC.BOOK_STORE.NAME. */ - public final TableField NAME = createField("NAME", org.jooq.impl.SQLDataType.VARCHAR.length(400).nullable(false), this, ""); + public final TableField NAME = createField("NAME", org.jooq.impl.SQLDataType.VARCHAR(400).nullable(false), this, ""); /** * Create a PUBLIC.BOOK_STORE table reference diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/BookToBookStore.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/BookToBookStore.java index 78754b47e1..6aaf91b7e2 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/BookToBookStore.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/BookToBookStore.java @@ -38,7 +38,7 @@ import org.jooq.impl.TableImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class BookToBookStore extends TableImpl { - private static final long serialVersionUID = 1712050974; + private static final long serialVersionUID = 225967216; /** * The reference instance of PUBLIC.BOOK_TO_BOOK_STORE @@ -56,7 +56,7 @@ public class BookToBookStore extends TableImpl { /** * The column PUBLIC.BOOK_TO_BOOK_STORE.BOOK_STORE_NAME. */ - public final TableField BOOK_STORE_NAME = createField("BOOK_STORE_NAME", org.jooq.impl.SQLDataType.VARCHAR.length(400).nullable(false), this, ""); + public final TableField BOOK_STORE_NAME = createField("BOOK_STORE_NAME", org.jooq.impl.SQLDataType.VARCHAR(400).nullable(false), this, ""); /** * The column PUBLIC.BOOK_TO_BOOK_STORE.BOOK_ID. diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/AuthorRecord.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/AuthorRecord.java index 97550000a4..167d4cc0ac 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/AuthorRecord.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/AuthorRecord.java @@ -29,7 +29,7 @@ import org.jooq.impl.UpdatableRecordImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class AuthorRecord extends UpdatableRecordImpl implements Record6 { - private static final long serialVersionUID = -1771073159; + private static final long serialVersionUID = 999666825; /** * Setter for PUBLIC.AUTHOR.ID. @@ -195,6 +195,54 @@ public class AuthorRecord extends UpdatableRecordImpl implements R return Author.AUTHOR.ADDRESS; } + /** + * {@inheritDoc} + */ + @Override + public Integer component1() { + return getId(); + } + + /** + * {@inheritDoc} + */ + @Override + public String component2() { + return getFirstName(); + } + + /** + * {@inheritDoc} + */ + @Override + public String component3() { + return getLastName(); + } + + /** + * {@inheritDoc} + */ + @Override + public Date component4() { + return getDateOfBirth(); + } + + /** + * {@inheritDoc} + */ + @Override + public Integer component5() { + return getYearOfBirth(); + } + + /** + * {@inheritDoc} + */ + @Override + public String component6() { + return getAddress(); + } + /** * {@inheritDoc} */ diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookRecord.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookRecord.java index ea9b4925ff..6bf293b855 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookRecord.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookRecord.java @@ -29,7 +29,7 @@ import org.jooq.impl.UpdatableRecordImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class BookRecord extends UpdatableRecordImpl implements Record11 { - private static final long serialVersionUID = 446314461; + private static final long serialVersionUID = 2119061160; /** * Setter for PUBLIC.BOOK.ID. @@ -305,6 +305,94 @@ public class BookRecord extends UpdatableRecordImpl implements Recor return Book.BOOK.REC_TIMESTAMP; } + /** + * {@inheritDoc} + */ + @Override + public Integer component1() { + return getId(); + } + + /** + * {@inheritDoc} + */ + @Override + public Integer component2() { + return getAuthorId(); + } + + /** + * {@inheritDoc} + */ + @Override + public Integer component3() { + return getCoAuthorId(); + } + + /** + * {@inheritDoc} + */ + @Override + public Integer component4() { + return getDetailsId(); + } + + /** + * {@inheritDoc} + */ + @Override + public String component5() { + return getTitle(); + } + + /** + * {@inheritDoc} + */ + @Override + public Integer component6() { + return getPublishedIn(); + } + + /** + * {@inheritDoc} + */ + @Override + public Integer component7() { + return getLanguageId(); + } + + /** + * {@inheritDoc} + */ + @Override + public String component8() { + return getContentText(); + } + + /** + * {@inheritDoc} + */ + @Override + public byte[] component9() { + return getContentPdf(); + } + + /** + * {@inheritDoc} + */ + @Override + public Integer component10() { + return getRecVersion(); + } + + /** + * {@inheritDoc} + */ + @Override + public Timestamp component11() { + return getRecTimestamp(); + } + /** * {@inheritDoc} */ diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookStoreRecord.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookStoreRecord.java index 6642bcca48..483a63b3df 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookStoreRecord.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookStoreRecord.java @@ -26,7 +26,7 @@ import org.jooq.impl.UpdatableRecordImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class BookStoreRecord extends UpdatableRecordImpl implements Record1 { - private static final long serialVersionUID = -722240116; + private static final long serialVersionUID = 1235477825; /** * Setter for PUBLIC.BOOK_STORE.NAME. @@ -82,6 +82,14 @@ public class BookStoreRecord extends UpdatableRecordImpl implem return BookStore.BOOK_STORE.NAME; } + /** + * {@inheritDoc} + */ + @Override + public String component1() { + return getName(); + } + /** * {@inheritDoc} */ diff --git a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookToBookStoreRecord.java b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookToBookStoreRecord.java index 780e7718e8..147fac82f8 100644 --- a/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookToBookStoreRecord.java +++ b/jOOQ-examples/jOOQ-kotlin-example/src/main/java/org/jooq/example/db/h2/tables/records/BookToBookStoreRecord.java @@ -27,7 +27,7 @@ import org.jooq.impl.UpdatableRecordImpl; @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class BookToBookStoreRecord extends UpdatableRecordImpl implements Record3 { - private static final long serialVersionUID = -214741574; + private static final long serialVersionUID = 1742096196; /** * Setter for PUBLIC.BOOK_TO_BOOK_STORE.BOOK_STORE_NAME. @@ -127,6 +127,30 @@ public class BookToBookStoreRecord extends UpdatableRecordImpl