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

org.jooq.scala.example.h2.Keys Maven / Gradle / Ivy

/**
 * This class is generated by jOOQ
 */
package org.jooq.scala.example.h2;

/**
 * A class modelling foreign key relationships between tables of the PUBLIC 
 * schema
 */
@javax.annotation.Generated(
	value = {
		"http://www.jooq.org",
		"jOOQ version:3.5.0"
	},
	comments = "This class is generated by jOOQ"
)
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {

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


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

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

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

	public static final org.jooq.ForeignKey FK_T_BOOK_AUTHOR_ID = ForeignKeys0.FK_T_BOOK_AUTHOR_ID;
	public static final org.jooq.ForeignKey FK_T_BOOK_CO_AUTHOR_ID = ForeignKeys0.FK_T_BOOK_CO_AUTHOR_ID;

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

	private static class UniqueKeys0 extends org.jooq.impl.AbstractKeys {
		public static final org.jooq.UniqueKey PK_T_AUTHOR = createUniqueKey(org.jooq.scala.example.h2.tables.TAuthor.T_AUTHOR, org.jooq.scala.example.h2.tables.TAuthor.T_AUTHOR.ID);
		public static final org.jooq.UniqueKey PK_T_BOOK = createUniqueKey(org.jooq.scala.example.h2.tables.TBook.T_BOOK, org.jooq.scala.example.h2.tables.TBook.T_BOOK.ID);
	}

	private static class ForeignKeys0 extends org.jooq.impl.AbstractKeys {
		public static final org.jooq.ForeignKey FK_T_BOOK_AUTHOR_ID = createForeignKey(org.jooq.scala.example.h2.Keys.PK_T_AUTHOR, org.jooq.scala.example.h2.tables.TBook.T_BOOK, org.jooq.scala.example.h2.tables.TBook.T_BOOK.AUTHOR_ID);
		public static final org.jooq.ForeignKey FK_T_BOOK_CO_AUTHOR_ID = createForeignKey(org.jooq.scala.example.h2.Keys.PK_T_AUTHOR, org.jooq.scala.example.h2.tables.TBook.T_BOOK, org.jooq.scala.example.h2.tables.TBook.T_BOOK.CO_AUTHOR_ID);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy