You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Keys.java

98 lines
3.7 KiB
Java

/**
* This class is generated by jOOQ
*/
package sample.jooq.domain;
import javax.annotation.Generated;
import org.jooq.ForeignKey;
import org.jooq.Record;
import org.jooq.UniqueKey;
import org.jooq.impl.AbstractKeys;
/**
8 years ago
* A class modelling foreign key relationships between tables of the <code>PUBLIC</code>
* schema
*/
@Generated(value = { "https://www.jooq.org",
8 years ago
"jOOQ version:3.8.2" }, comments = "This class is generated by jOOQ")
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
8 years ago
// -------------------------------------------------------------------------
// IDENTITY definitions
// -------------------------------------------------------------------------
8 years ago
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
8 years ago
public static final UniqueKey<Record> CONSTRAINT_C = UniqueKeys0.CONSTRAINT_C;
8 years ago
public static final UniqueKey<Record> CONSTRAINT_7 = UniqueKeys0.CONSTRAINT_7;
8 years ago
public static final UniqueKey<Record> CONSTRAINT_1 = UniqueKeys0.CONSTRAINT_1;
8 years ago
public static final UniqueKey<Record> CONSTRAINT_F = UniqueKeys0.CONSTRAINT_F;
8 years ago
public static final UniqueKey<Record> CONSTRAINT_2 = UniqueKeys0.CONSTRAINT_2;
8 years ago
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
8 years ago
public static final ForeignKey<Record, Record> FK_BOOK_AUTHOR = ForeignKeys0.FK_BOOK_AUTHOR;
8 years ago
public static final ForeignKey<Record, Record> FK_BOOK_LANGUAGE = ForeignKeys0.FK_BOOK_LANGUAGE;
8 years ago
public static final ForeignKey<Record, Record> FK_B2BS_BOOK_STORE = ForeignKeys0.FK_B2BS_BOOK_STORE;
8 years ago
public static final ForeignKey<Record, Record> FK_B2BS_BOOK = ForeignKeys0.FK_B2BS_BOOK;
8 years ago
// -------------------------------------------------------------------------
// [#1459] distribute members to avoid static initialisers > 64kb
// -------------------------------------------------------------------------
8 years ago
private static class UniqueKeys0 extends AbstractKeys {
8 years ago
public static final UniqueKey<Record> CONSTRAINT_C = createUniqueKey(
Language.LANGUAGE, "CONSTRAINT_C", Language.LANGUAGE.ID);
8 years ago
public static final UniqueKey<Record> CONSTRAINT_7 = createUniqueKey(
Author.AUTHOR, "CONSTRAINT_7", Author.AUTHOR.ID);
8 years ago
public static final UniqueKey<Record> CONSTRAINT_1 = createUniqueKey(Book.BOOK,
"CONSTRAINT_1", Book.BOOK.ID);
8 years ago
public static final UniqueKey<Record> CONSTRAINT_F = createUniqueKey(
BookStore.BOOK_STORE, "CONSTRAINT_F", BookStore.BOOK_STORE.NAME);
8 years ago
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);
8 years ago
}
8 years ago
private static class ForeignKeys0 extends AbstractKeys {
8 years ago
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);
8 years ago
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);
8 years ago
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);
8 years ago
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);
8 years ago
}
}