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