|
|
|
@ -3,7 +3,6 @@
|
|
|
|
|
*/
|
|
|
|
|
package sample.jooq.domain;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Generated;
|
|
|
|
|
|
|
|
|
|
import org.jooq.ForeignKey;
|
|
|
|
@ -11,18 +10,12 @@ import org.jooq.Record;
|
|
|
|
|
import org.jooq.UniqueKey;
|
|
|
|
|
import org.jooq.impl.AbstractKeys;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A class modelling foreign key relationships between tables of the <code>PUBLIC</code>
|
|
|
|
|
* schema
|
|
|
|
|
*/
|
|
|
|
|
@Generated(
|
|
|
|
|
value = {
|
|
|
|
|
"http://www.jooq.org",
|
|
|
|
|
"jOOQ version:3.8.2"
|
|
|
|
|
},
|
|
|
|
|
comments = "This class is generated by jOOQ"
|
|
|
|
|
)
|
|
|
|
|
@Generated(value = { "http://www.jooq.org",
|
|
|
|
|
"jOOQ version:3.8.2" }, comments = "This class is generated by jOOQ")
|
|
|
|
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
|
|
|
|
public class Keys {
|
|
|
|
|
|
|
|
|
@ -30,7 +23,6 @@ public class Keys {
|
|
|
|
|
// IDENTITY definitions
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
|
// UNIQUE and PRIMARY KEY definitions
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
@ -55,17 +47,32 @@ public class Keys {
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
private static class UniqueKeys0 extends AbstractKeys {
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_C = createUniqueKey(Language.LANGUAGE, "CONSTRAINT_C", Language.LANGUAGE.ID);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_7 = createUniqueKey(Author.AUTHOR, "CONSTRAINT_7", Author.AUTHOR.ID);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_1 = createUniqueKey(Book.BOOK, "CONSTRAINT_1", Book.BOOK.ID);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_F = createUniqueKey(BookStore.BOOK_STORE, "CONSTRAINT_F", BookStore.BOOK_STORE.NAME);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_2 = createUniqueKey(BookToBookStore.BOOK_TO_BOOK_STORE, "CONSTRAINT_2", BookToBookStore.BOOK_TO_BOOK_STORE.NAME, BookToBookStore.BOOK_TO_BOOK_STORE.BOOK_ID);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_C = createUniqueKey(
|
|
|
|
|
Language.LANGUAGE, "CONSTRAINT_C", Language.LANGUAGE.ID);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_7 = createUniqueKey(
|
|
|
|
|
Author.AUTHOR, "CONSTRAINT_7", Author.AUTHOR.ID);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_1 = createUniqueKey(Book.BOOK,
|
|
|
|
|
"CONSTRAINT_1", Book.BOOK.ID);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_F = createUniqueKey(
|
|
|
|
|
BookStore.BOOK_STORE, "CONSTRAINT_F", BookStore.BOOK_STORE.NAME);
|
|
|
|
|
public static final UniqueKey<Record> CONSTRAINT_2 = createUniqueKey(
|
|
|
|
|
BookToBookStore.BOOK_TO_BOOK_STORE, "CONSTRAINT_2",
|
|
|
|
|
BookToBookStore.BOOK_TO_BOOK_STORE.NAME,
|
|
|
|
|
BookToBookStore.BOOK_TO_BOOK_STORE.BOOK_ID);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static class ForeignKeys0 extends AbstractKeys {
|
|
|
|
|
public static final ForeignKey<Record, Record> FK_BOOK_AUTHOR = createForeignKey(sample.jooq.domain.Keys.CONSTRAINT_7, Book.BOOK, "FK_BOOK_AUTHOR", Book.BOOK.AUTHOR_ID);
|
|
|
|
|
public static final ForeignKey<Record, Record> FK_BOOK_LANGUAGE = createForeignKey(sample.jooq.domain.Keys.CONSTRAINT_C, Book.BOOK, "FK_BOOK_LANGUAGE", Book.BOOK.LANGUAGE_ID);
|
|
|
|
|
public static final ForeignKey<Record, Record> FK_B2BS_BOOK_STORE = createForeignKey(sample.jooq.domain.Keys.CONSTRAINT_F, BookToBookStore.BOOK_TO_BOOK_STORE, "FK_B2BS_BOOK_STORE", BookToBookStore.BOOK_TO_BOOK_STORE.NAME);
|
|
|
|
|
public static final ForeignKey<Record, Record> FK_B2BS_BOOK = createForeignKey(sample.jooq.domain.Keys.CONSTRAINT_1, BookToBookStore.BOOK_TO_BOOK_STORE, "FK_B2BS_BOOK", BookToBookStore.BOOK_TO_BOOK_STORE.BOOK_ID);
|
|
|
|
|
public static final ForeignKey<Record, Record> FK_BOOK_AUTHOR = createForeignKey(
|
|
|
|
|
sample.jooq.domain.Keys.CONSTRAINT_7, Book.BOOK, "FK_BOOK_AUTHOR",
|
|
|
|
|
Book.BOOK.AUTHOR_ID);
|
|
|
|
|
public static final ForeignKey<Record, Record> FK_BOOK_LANGUAGE = createForeignKey(
|
|
|
|
|
sample.jooq.domain.Keys.CONSTRAINT_C, Book.BOOK, "FK_BOOK_LANGUAGE",
|
|
|
|
|
Book.BOOK.LANGUAGE_ID);
|
|
|
|
|
public static final ForeignKey<Record, Record> FK_B2BS_BOOK_STORE = createForeignKey(
|
|
|
|
|
sample.jooq.domain.Keys.CONSTRAINT_F, BookToBookStore.BOOK_TO_BOOK_STORE,
|
|
|
|
|
"FK_B2BS_BOOK_STORE", BookToBookStore.BOOK_TO_BOOK_STORE.NAME);
|
|
|
|
|
public static final ForeignKey<Record, Record> FK_B2BS_BOOK = createForeignKey(
|
|
|
|
|
sample.jooq.domain.Keys.CONSTRAINT_1, BookToBookStore.BOOK_TO_BOOK_STORE,
|
|
|
|
|
"FK_B2BS_BOOK", BookToBookStore.BOOK_TO_BOOK_STORE.BOOK_ID);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|