Regenerated example code

This commit is contained in:
Lukas Eder 2020-07-15 15:39:57 +02:00
parent 719aae0a73
commit 11e9ec7eac
8 changed files with 8 additions and 41 deletions

View File

@ -22,11 +22,6 @@ import org.jooq.impl.Internal;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
// -------------------------------------------------------------------------
// IDENTITY definitions
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------

View File

@ -5,7 +5,6 @@ package org.jooq.example.jpa.jooq;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.example.jpa.jooq.tables.Actor;
@ -27,14 +26,6 @@ import org.jooq.impl.Internal;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
// -------------------------------------------------------------------------
// IDENTITY definitions
// -------------------------------------------------------------------------
public static final Identity<ActorRecord, Integer> IDENTITY_ACTOR = Identities0.IDENTITY_ACTOR;
public static final Identity<FilmRecord, Integer> IDENTITY_FILM = Identities0.IDENTITY_FILM;
public static final Identity<LanguageRecord, Integer> IDENTITY_LANGUAGE = Identities0.IDENTITY_LANGUAGE;
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
@ -57,12 +48,6 @@ public class Keys {
// [#1459] distribute members to avoid static initialisers > 64kb
// -------------------------------------------------------------------------
private static class Identities0 {
static final Identity<ActorRecord, Integer> IDENTITY_ACTOR = Internal.createIdentity(Actor.ACTOR, Actor.ACTOR.ACTORID);
static final Identity<FilmRecord, Integer> IDENTITY_FILM = Internal.createIdentity(Film.FILM, Film.FILM.FILMID);
static final Identity<LanguageRecord, Integer> IDENTITY_LANGUAGE = Internal.createIdentity(Language.LANGUAGE, Language.LANGUAGE.LANGUAGEID);
}
private static class UniqueKeys0 {
static final UniqueKey<ActorRecord> CONSTRAINT_3 = Internal.createUniqueKey(Actor.ACTOR, DSL.name("CONSTRAINT_3"), new TableField[] { Actor.ACTOR.ACTORID }, true);
static final UniqueKey<FilmRecord> CONSTRAINT_2 = Internal.createUniqueKey(Film.FILM, DSL.name("CONSTRAINT_2"), new TableField[] { Film.FILM.FILMID }, true);

View File

@ -31,7 +31,7 @@ import org.jooq.impl.TableImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Actor extends TableImpl<ActorRecord> {
private static final long serialVersionUID = -1488770024;
private static final long serialVersionUID = -837715027;
/**
* The reference instance of <code>ACTOR</code>
@ -101,7 +101,7 @@ public class Actor extends TableImpl<ActorRecord> {
@Override
public Identity<ActorRecord, Integer> getIdentity() {
return Keys.IDENTITY_ACTOR;
return (Identity<ActorRecord, Integer>) super.getIdentity();
}
@Override

View File

@ -32,7 +32,7 @@ import org.jooq.impl.TableImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Film extends TableImpl<FilmRecord> {
private static final long serialVersionUID = 313776890;
private static final long serialVersionUID = 380882165;
/**
* The reference instance of <code>FILM</code>
@ -117,7 +117,7 @@ public class Film extends TableImpl<FilmRecord> {
@Override
public Identity<FilmRecord, Integer> getIdentity() {
return Keys.IDENTITY_FILM;
return (Identity<FilmRecord, Integer>) super.getIdentity();
}
@Override

View File

@ -31,7 +31,7 @@ import org.jooq.impl.TableImpl;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Language extends TableImpl<LanguageRecord> {
private static final long serialVersionUID = 888214397;
private static final long serialVersionUID = -1201806006;
/**
* The reference instance of <code>LANGUAGE</code>
@ -96,7 +96,7 @@ public class Language extends TableImpl<LanguageRecord> {
@Override
public Identity<LanguageRecord, Integer> getIdentity() {
return Keys.IDENTITY_LANGUAGE;
return (Identity<LanguageRecord, Integer>) super.getIdentity();
}
@Override

View File

@ -5,7 +5,6 @@ package org.jooq.example.kotlin.db.h2
import org.jooq.ForeignKey
import org.jooq.Identity
import org.jooq.UniqueKey
import org.jooq.example.kotlin.db.h2.tables.Author
import org.jooq.example.kotlin.db.h2.tables.Book
@ -26,13 +25,6 @@ import org.jooq.impl.Internal
@Suppress("UNCHECKED_CAST")
object Keys {
// -------------------------------------------------------------------------
// IDENTITY definitions
// -------------------------------------------------------------------------
val IDENTITY_AUTHOR = Identities0.IDENTITY_AUTHOR
val IDENTITY_BOOK = Identities0.IDENTITY_BOOK
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
@ -55,11 +47,6 @@ object Keys {
// [#1459] distribute members to avoid static initialisers > 64kb
// -------------------------------------------------------------------------
private object Identities0 {
val IDENTITY_AUTHOR: Identity<AuthorRecord, Int?> = Internal.createIdentity(Author.AUTHOR, Author.AUTHOR.ID)
val IDENTITY_BOOK: Identity<BookRecord, Int?> = Internal.createIdentity(Book.BOOK, Book.BOOK.ID)
}
private object UniqueKeys0 {
val PK_T_AUTHOR: UniqueKey<AuthorRecord> = Internal.createUniqueKey(Author.AUTHOR, DSL.name("PK_T_AUTHOR"), arrayOf(Author.AUTHOR.ID), true)
val PK_T_BOOK: UniqueKey<BookRecord> = Internal.createUniqueKey(Book.BOOK, DSL.name("PK_T_BOOK"), arrayOf(Book.BOOK.ID), true)

View File

@ -110,7 +110,7 @@ class Author(
constructor(child: Table<out Record>, key: ForeignKey<out Record, AuthorRecord>): this(Internal.createPathAlias(child, key), child, key, AUTHOR, null)
override fun getSchema(): Schema = Public.PUBLIC
override fun getIdentity(): Identity<AuthorRecord, Int?> = Keys.IDENTITY_AUTHOR
override fun getIdentity(): Identity<AuthorRecord, Int?> = super.getIdentity() as Identity<AuthorRecord, Int?>
override fun getPrimaryKey(): UniqueKey<AuthorRecord> = Keys.PK_T_AUTHOR
override fun getKeys(): List<UniqueKey<AuthorRecord>> = listOf(Keys.PK_T_AUTHOR)
override fun `as`(alias: String): Author = Author(DSL.name(alias), this)

View File

@ -135,7 +135,7 @@ class Book(
constructor(child: Table<out Record>, key: ForeignKey<out Record, BookRecord>): this(Internal.createPathAlias(child, key), child, key, BOOK, null)
override fun getSchema(): Schema = Public.PUBLIC
override fun getIdentity(): Identity<BookRecord, Int?> = Keys.IDENTITY_BOOK
override fun getIdentity(): Identity<BookRecord, Int?> = super.getIdentity() as Identity<BookRecord, Int?>
override fun getPrimaryKey(): UniqueKey<BookRecord> = Keys.PK_T_BOOK
override fun getKeys(): List<UniqueKey<BookRecord>> = listOf(Keys.PK_T_BOOK)
override fun getReferences(): List<ForeignKey<BookRecord, *>> = listOf(Keys.FK_T_BOOK_AUTHOR_ID, Keys.FK_T_BOOK_CO_AUTHOR_ID)