|
| 1 | +/** |
| 2 | + * This class is generated by jOOQ |
| 3 | + */ |
| 4 | +package com.clevergang.dbtests.repository.impl.jooq.generated; |
| 5 | + |
| 6 | + |
| 7 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.Company; |
| 8 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.Department; |
| 9 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.Employee; |
| 10 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.Project; |
| 11 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.Projectemployee; |
| 12 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.records.CompanyRecord; |
| 13 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.records.DepartmentRecord; |
| 14 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.records.EmployeeRecord; |
| 15 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.records.ProjectRecord; |
| 16 | +import com.clevergang.dbtests.repository.impl.jooq.generated.tables.records.ProjectemployeeRecord; |
| 17 | + |
| 18 | +import javax.annotation.Generated; |
| 19 | + |
| 20 | +import org.jooq.ForeignKey; |
| 21 | +import org.jooq.Identity; |
| 22 | +import org.jooq.UniqueKey; |
| 23 | +import org.jooq.impl.AbstractKeys; |
| 24 | + |
| 25 | + |
| 26 | +/** |
| 27 | + * A class modelling foreign key relationships between tables of the <code>public</code> |
| 28 | + * schema |
| 29 | + */ |
| 30 | +@Generated( |
| 31 | + value = { |
| 32 | + "http://www.jooq.org", |
| 33 | + "jOOQ version:3.7.2" |
| 34 | + }, |
| 35 | + comments = "This class is generated by jOOQ" |
| 36 | +) |
| 37 | +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) |
| 38 | +public class Keys { |
| 39 | + |
| 40 | + // ------------------------------------------------------------------------- |
| 41 | + // IDENTITY definitions |
| 42 | + // ------------------------------------------------------------------------- |
| 43 | + |
| 44 | + public static final Identity<CompanyRecord, Integer> IDENTITY_COMPANY = Identities0.IDENTITY_COMPANY; |
| 45 | + public static final Identity<DepartmentRecord, Integer> IDENTITY_DEPARTMENT = Identities0.IDENTITY_DEPARTMENT; |
| 46 | + public static final Identity<EmployeeRecord, Integer> IDENTITY_EMPLOYEE = Identities0.IDENTITY_EMPLOYEE; |
| 47 | + public static final Identity<ProjectRecord, Integer> IDENTITY_PROJECT = Identities0.IDENTITY_PROJECT; |
| 48 | + |
| 49 | + // ------------------------------------------------------------------------- |
| 50 | + // UNIQUE and PRIMARY KEY definitions |
| 51 | + // ------------------------------------------------------------------------- |
| 52 | + |
| 53 | + public static final UniqueKey<CompanyRecord> COMPANY_PKEY = UniqueKeys0.COMPANY_PKEY; |
| 54 | + public static final UniqueKey<DepartmentRecord> DEPARTMENT_PKEY = UniqueKeys0.DEPARTMENT_PKEY; |
| 55 | + public static final UniqueKey<EmployeeRecord> EMPLOYEE_PKEY = UniqueKeys0.EMPLOYEE_PKEY; |
| 56 | + public static final UniqueKey<ProjectRecord> PROJECT_PKEY = UniqueKeys0.PROJECT_PKEY; |
| 57 | + public static final UniqueKey<ProjectemployeeRecord> PROJECTEMPLOYEE_PKEY = UniqueKeys0.PROJECTEMPLOYEE_PKEY; |
| 58 | + |
| 59 | + // ------------------------------------------------------------------------- |
| 60 | + // FOREIGN KEY definitions |
| 61 | + // ------------------------------------------------------------------------- |
| 62 | + |
| 63 | + public static final ForeignKey<DepartmentRecord, CompanyRecord> DEPARTMENT__DEPARTMENT_COMPANY_PID_FKEY = ForeignKeys0.DEPARTMENT__DEPARTMENT_COMPANY_PID_FKEY; |
| 64 | + public static final ForeignKey<EmployeeRecord, DepartmentRecord> EMPLOYEE__EMPLOYEE_DEPARTMENT_PID_FKEY = ForeignKeys0.EMPLOYEE__EMPLOYEE_DEPARTMENT_PID_FKEY; |
| 65 | + public static final ForeignKey<ProjectemployeeRecord, ProjectRecord> PROJECTEMPLOYEE__PROJECTEMPLOYEE_PROJECT_PID_FKEY = ForeignKeys0.PROJECTEMPLOYEE__PROJECTEMPLOYEE_PROJECT_PID_FKEY; |
| 66 | + public static final ForeignKey<ProjectemployeeRecord, EmployeeRecord> PROJECTEMPLOYEE__PROJECTEMPLOYEE_EMPLOYEE_PID_FKEY = ForeignKeys0.PROJECTEMPLOYEE__PROJECTEMPLOYEE_EMPLOYEE_PID_FKEY; |
| 67 | + |
| 68 | + // ------------------------------------------------------------------------- |
| 69 | + // [#1459] distribute members to avoid static initialisers > 64kb |
| 70 | + // ------------------------------------------------------------------------- |
| 71 | + |
| 72 | + private static class Identities0 extends AbstractKeys { |
| 73 | + public static Identity<CompanyRecord, Integer> IDENTITY_COMPANY = createIdentity(Company.COMPANY, Company.COMPANY.PID); |
| 74 | + public static Identity<DepartmentRecord, Integer> IDENTITY_DEPARTMENT = createIdentity(Department.DEPARTMENT, Department.DEPARTMENT.PID); |
| 75 | + public static Identity<EmployeeRecord, Integer> IDENTITY_EMPLOYEE = createIdentity(Employee.EMPLOYEE, Employee.EMPLOYEE.PID); |
| 76 | + public static Identity<ProjectRecord, Integer> IDENTITY_PROJECT = createIdentity(Project.PROJECT, Project.PROJECT.PID); |
| 77 | + } |
| 78 | + |
| 79 | + private static class UniqueKeys0 extends AbstractKeys { |
| 80 | + public static final UniqueKey<CompanyRecord> COMPANY_PKEY = createUniqueKey(Company.COMPANY, Company.COMPANY.PID); |
| 81 | + public static final UniqueKey<DepartmentRecord> DEPARTMENT_PKEY = createUniqueKey(Department.DEPARTMENT, Department.DEPARTMENT.PID); |
| 82 | + public static final UniqueKey<EmployeeRecord> EMPLOYEE_PKEY = createUniqueKey(Employee.EMPLOYEE, Employee.EMPLOYEE.PID); |
| 83 | + public static final UniqueKey<ProjectRecord> PROJECT_PKEY = createUniqueKey(Project.PROJECT, Project.PROJECT.PID); |
| 84 | + public static final UniqueKey<ProjectemployeeRecord> PROJECTEMPLOYEE_PKEY = createUniqueKey(Projectemployee.PROJECTEMPLOYEE, Projectemployee.PROJECTEMPLOYEE.PROJECT_PID, Projectemployee.PROJECTEMPLOYEE.EMPLOYEE_PID); |
| 85 | + } |
| 86 | + |
| 87 | + private static class ForeignKeys0 extends AbstractKeys { |
| 88 | + public static final ForeignKey<DepartmentRecord, CompanyRecord> DEPARTMENT__DEPARTMENT_COMPANY_PID_FKEY = createForeignKey(com.clevergang.dbtests.repository.impl.jooq.generated.Keys.COMPANY_PKEY, Department.DEPARTMENT, Department.DEPARTMENT.COMPANY_PID); |
| 89 | + public static final ForeignKey<EmployeeRecord, DepartmentRecord> EMPLOYEE__EMPLOYEE_DEPARTMENT_PID_FKEY = createForeignKey(com.clevergang.dbtests.repository.impl.jooq.generated.Keys.DEPARTMENT_PKEY, Employee.EMPLOYEE, Employee.EMPLOYEE.DEPARTMENT_PID); |
| 90 | + public static final ForeignKey<ProjectemployeeRecord, ProjectRecord> PROJECTEMPLOYEE__PROJECTEMPLOYEE_PROJECT_PID_FKEY = createForeignKey(com.clevergang.dbtests.repository.impl.jooq.generated.Keys.PROJECT_PKEY, Projectemployee.PROJECTEMPLOYEE, Projectemployee.PROJECTEMPLOYEE.PROJECT_PID); |
| 91 | + public static final ForeignKey<ProjectemployeeRecord, EmployeeRecord> PROJECTEMPLOYEE__PROJECTEMPLOYEE_EMPLOYEE_PID_FKEY = createForeignKey(com.clevergang.dbtests.repository.impl.jooq.generated.Keys.EMPLOYEE_PKEY, Projectemployee.PROJECTEMPLOYEE, Projectemployee.PROJECTEMPLOYEE.EMPLOYEE_PID); |
| 92 | + } |
| 93 | +} |
0 commit comments