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-smoke-tests/spring-boot-smoke-test-jooq/gensrc/main/java/smoketest/jooq/domain/Keys.java

114 lines
4.3 KiB
Java

/*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This class is generated by jOOQ
*/
package smoketest.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(
Keys.CONSTRAINT_7, Book.BOOK, "FK_BOOK_AUTHOR",
8 years ago
Book.BOOK.AUTHOR_ID);
8 years ago
public static final ForeignKey<Record, Record> FK_BOOK_LANGUAGE = createForeignKey(
Keys.CONSTRAINT_C, Book.BOOK, "FK_BOOK_LANGUAGE",
8 years ago
Book.BOOK.LANGUAGE_ID);
8 years ago
public static final ForeignKey<Record, Record> FK_B2BS_BOOK_STORE = createForeignKey(
Keys.CONSTRAINT_F, BookToBookStore.BOOK_TO_BOOK_STORE,
8 years ago
"FK_B2BS_BOOK_STORE", BookToBookStore.BOOK_TO_BOOK_STORE.NAME);
8 years ago
public static final ForeignKey<Record, Record> FK_B2BS_BOOK = createForeignKey(
Keys.CONSTRAINT_1, BookToBookStore.BOOK_TO_BOOK_STORE,
8 years ago
"FK_B2BS_BOOK", BookToBookStore.BOOK_TO_BOOK_STORE.BOOK_ID);
8 years ago
}
}