All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jooq.example.flyway.db.h2.Keys Maven / Gradle / Ivy

There is a newer version: 1.37.1
Show newest version
/**
 * This class is generated by jOOQ
 */
package org.jooq.example.flyway.db.h2;


import javax.annotation.Generated;

import org.jooq.ForeignKey;
import org.jooq.UniqueKey;
import org.jooq.example.flyway.db.h2.tables.Author;
import org.jooq.example.flyway.db.h2.tables.Book;
import org.jooq.example.flyway.db.h2.tables.records.AuthorRecord;
import org.jooq.example.flyway.db.h2.tables.records.BookRecord;
import org.jooq.impl.AbstractKeys;


/**
 * A class modelling foreign key relationships between tables of the FLYWAY_TEST 
 * schema
 */
@Generated(
    value = {
        "http://www.jooq.org",
        "jOOQ version:3.8.4",
        "catalog version:DEFAULT_CATALOG_20211023101339",
        "schema version:FLYWAY_TEST_3",
    },
    date = "2021-10-23T10:13:38.976+00:00",
    comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {

    // -------------------------------------------------------------------------
    // IDENTITY definitions
    // -------------------------------------------------------------------------


    // -------------------------------------------------------------------------
    // UNIQUE and PRIMARY KEY definitions
    // -------------------------------------------------------------------------

    public static final UniqueKey PK_T_AUTHOR = UniqueKeys0.PK_T_AUTHOR;
    public static final UniqueKey PK_T_BOOK = UniqueKeys0.PK_T_BOOK;

    // -------------------------------------------------------------------------
    // FOREIGN KEY definitions
    // -------------------------------------------------------------------------

    public static final ForeignKey FK_T_BOOK_AUTHOR_ID = ForeignKeys0.FK_T_BOOK_AUTHOR_ID;

    // -------------------------------------------------------------------------
    // [#1459] distribute members to avoid static initialisers > 64kb
    // -------------------------------------------------------------------------

    private static class UniqueKeys0 extends AbstractKeys {
        public static final UniqueKey PK_T_AUTHOR = createUniqueKey(Author.AUTHOR, "PK_T_AUTHOR", Author.AUTHOR.ID);
        public static final UniqueKey PK_T_BOOK = createUniqueKey(Book.BOOK, "PK_T_BOOK", Book.BOOK.ID);
    }

    private static class ForeignKeys0 extends AbstractKeys {
        public static final ForeignKey FK_T_BOOK_AUTHOR_ID = createForeignKey(org.jooq.example.flyway.db.h2.Keys.PK_T_AUTHOR, Book.BOOK, "FK_T_BOOK_AUTHOR_ID", Book.BOOK.AUTHOR_ID);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy