diff --git a/docker-compose.yml b/docker-compose.yml index ce7dcbf3e4..88a3b0b4f1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,8 +15,6 @@ services: image: mysql:5.6.38 ports: - "3306:3306" - volumes: - - ./db/mysql.sh:/docker-entrypoint-initdb.d/mysql.sh environment: - MYSQL_ROOT_PASSWORD=querydsl - MYSQL_USER=querydsl diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAnimal_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAnimal_.java index 19b5824ce1..55c1c41737 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAnimal_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAnimal_.java @@ -53,21 +53,6 @@ public class SAnimal_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey animal_MATEIDFK = createForeignKey(mateId, "ID"); - public final com.querydsl.sql.ForeignKey _animal_MATEIDFK = - createInvForeignKey(id, "MATE_ID"); - - public final com.querydsl.sql.ForeignKey _kittensCatIdFK = - createInvForeignKey(id, "cat_id"); - - public final com.querydsl.sql.ForeignKey _kittensKittenIdFK = - createInvForeignKey(id, "kitten_id"); - - public final com.querydsl.sql.ForeignKey _kittensSetCatIdFK = - createInvForeignKey(id, "cat_id"); - - public final com.querydsl.sql.ForeignKey _kittensSetKittenIdFK = - createInvForeignKey(id, "kitten_id"); - public SAnimal_(String variable) { super(SAnimal_.class, forVariable(variable), "null", "animal_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAuthor_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAuthor_.java index c2d5b04df4..393d35f297 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAuthor_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SAuthor_.java @@ -23,9 +23,6 @@ public class SAuthor_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _book_AUTHORIDFK = - createInvForeignKey(id, "AUTHOR_ID"); - public SAuthor_(String variable) { super(SAuthor_.class, forVariable(variable), "null", "author_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBookid_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBookid_.java index 3433685449..f826383c15 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBookid_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBookid_.java @@ -21,9 +21,6 @@ public class SBookid_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(identity); - public final com.querydsl.sql.ForeignKey _bookversion_BOOKIDIDENTITYFK = - createInvForeignKey(identity, "BOOKID_IDENTITY"); - public SBookid_(String variable) { super(SBookid_.class, forVariable(variable), "null", "bookid_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBookversion_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBookversion_.java index c9fb5bfeb7..63cd4c91c5 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBookversion_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SBookversion_.java @@ -7,7 +7,6 @@ import com.querydsl.core.types.dsl.*; import com.querydsl.sql.ColumnMetadata; import java.sql.Types; -import java.util.*; import javax.annotation.processing.Generated; /** SBookversion_ is a Querydsl query type for SBookversion_ */ @@ -35,11 +34,6 @@ public class SBookversion_ extends com.querydsl.sql.RelationalPathBase bookversion_LIBRARYIDENTITYFK = createForeignKey(libraryIdentity, "IDENTITY"); - public final com.querydsl.sql.ForeignKey _bookBookmarksBOOKIDIDENTITYFK = - createInvForeignKey( - Arrays.asList(bookidIdentity, libraryIdentity), - Arrays.asList("BOOKID_IDENTITY", "LIBRARY_IDENTITY")); - public SBookversion_(String variable) { super(SBookversion_.class, forVariable(variable), "null", "bookversion_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCalendarHolidays.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCalendarHolidays.java index afe8e6962b..383996f9c7 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCalendarHolidays.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCalendarHolidays.java @@ -1,38 +1,23 @@ package com.querydsl.jpa.domain.sql; -import static com.querydsl.core.types.PathMetadataFactory.forVariable; +import static com.querydsl.core.types.PathMetadataFactory.*; import com.querydsl.core.types.Path; import com.querydsl.core.types.PathMetadata; -import com.querydsl.core.types.dsl.DatePath; -import com.querydsl.core.types.dsl.NumberPath; -import com.querydsl.core.types.dsl.StringPath; -import com.querydsl.sql.ColumnMetadata; -import jakarta.annotation.Generated; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; /** SCalendarHolidays is a Querydsl query type for SCalendarHolidays */ @Generated("com.querydsl.sql.codegen.MetaDataSerializer") public class SCalendarHolidays extends com.querydsl.sql.RelationalPathBase { - private static final long serialVersionUID = 850508650; + private static final long serialVersionUID = 324116737; - public static final SCalendarHolidays CalendarHolidays = - new SCalendarHolidays("Calendar_holidays"); - - public final NumberPath calendarId = createNumber("calendarId", Integer.class); - - public final DatePath holidays = createDate("holidays", java.sql.Date.class); - - public final StringPath holidaysKEY = createString("holidaysKEY"); - - public final com.querydsl.sql.PrimaryKey primary = - createPrimaryKey(calendarId, holidaysKEY); - - public final com.querydsl.sql.ForeignKey fk31ce1edc591ebbc = - createForeignKey(calendarId, "id"); + public static final SCalendarHolidays calendarHolidays = + new SCalendarHolidays("calendar_holidays"); public SCalendarHolidays(String variable) { - super(SCalendarHolidays.class, forVariable(variable), "", "Calendar_holidays"); + super(SCalendarHolidays.class, forVariable(variable), "null", "calendar_holidays"); addMetadata(); } @@ -41,23 +26,20 @@ public SCalendarHolidays(String variable, String schema, String table) { addMetadata(); } + public SCalendarHolidays(String variable, String schema) { + super(SCalendarHolidays.class, forVariable(variable), schema, "calendar_holidays"); + addMetadata(); + } + public SCalendarHolidays(Path path) { - super(path.getType(), path.getMetadata(), "", "Calendar_holidays"); + super(path.getType(), path.getMetadata(), "null", "calendar_holidays"); addMetadata(); } public SCalendarHolidays(PathMetadata metadata) { - super(SCalendarHolidays.class, metadata, "", "Calendar_holidays"); + super(SCalendarHolidays.class, metadata, "null", "calendar_holidays"); addMetadata(); } - public void addMetadata() { - addMetadata( - calendarId, - ColumnMetadata.named("Calendar_id").withIndex(1).ofType(4).withSize(10).notNull()); - addMetadata(holidays, ColumnMetadata.named("holidays").withIndex(2).ofType(91).withSize(10)); - addMetadata( - holidaysKEY, - ColumnMetadata.named("holidays_KEY").withIndex(3).ofType(12).withSize(255).notNull()); - } + public void addMetadata() {} } diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCalendar_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCalendar_.java index be9e37148b..8534dc8470 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCalendar_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCalendar_.java @@ -21,12 +21,6 @@ public class SCalendar_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _calendarHOLIDAYSCalendarIDFK = - createInvForeignKey(id, "Calendar_ID"); - - public final com.querydsl.sql.ForeignKey _nationality_CALENDARIDFK = - createInvForeignKey(id, "CALENDAR_ID"); - public SCalendar_(String variable) { super(SCalendar_.class, forVariable(variable), "null", "calendar_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCatalog_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCatalog_.java index 072e5af194..ba75d6f9d7 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCatalog_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCatalog_.java @@ -24,9 +24,6 @@ public class SCatalog_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _catalog_price_CatalogIDFK = - createInvForeignKey(id, "Catalog_ID"); - public SCatalog_(String variable) { super(SCatalog_.class, forVariable(variable), "null", "catalog_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCategory_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCategory_.java index c33aabc660..1708c12d92 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCategory_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCategory_.java @@ -40,18 +40,6 @@ public class SCategory_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _category_category_childIdFK = - createInvForeignKey(id, "childId"); - - public final com.querydsl.sql.ForeignKey _category_category_parentIdFK = - createInvForeignKey(id, "parentId"); - - public final com.querydsl.sql.ForeignKey - _category_categoryprop_CategoryIDFK = createInvForeignKey(id, "Category_ID"); - - public final com.querydsl.sql.ForeignKey - _userprop_category_childCategoriesIDFK = createInvForeignKey(id, "childCategories_ID"); - public SCategory_(String variable) { super(SCategory_.class, forVariable(variable), "null", "category_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCategoryprop_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCategoryprop_.java index eaf3f80f95..c5bd3be780 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCategoryprop_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCategoryprop_.java @@ -27,12 +27,6 @@ public class SCategoryprop_ extends com.querydsl.sql.RelationalPathBase primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey - _category_categoryprop_propertiesIDFK = createInvForeignKey(id, "properties_ID"); - - public final com.querydsl.sql.ForeignKey - _userprop_categoryprop_propertiesIDFK = createInvForeignKey(id, "properties_ID"); - public SCategoryprop_(String variable) { super(SCategoryprop_.class, forVariable(variable), "null", "categoryprop_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCompany_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCompany_.java index 576ee701e5..ff5fdb3540 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCompany_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCompany_.java @@ -34,18 +34,6 @@ public class SCompany_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey company_CEOIDFK = createForeignKey(ceoId, "ID"); - public final com.querydsl.sql.ForeignKey _company_department_CompanyIDFK = - createInvForeignKey(id, "Company_ID"); - - public final com.querydsl.sql.ForeignKey _department_COMPANYIDFK = - createInvForeignKey(id, "COMPANY_ID"); - - public final com.querydsl.sql.ForeignKey _employee_COMPANYIDFK = - createInvForeignKey(id, "COMPANY_ID"); - - public final com.querydsl.sql.ForeignKey _user_COMPANYIDFK = - createInvForeignKey(id, "COMPANY_ID"); - public SCompany_(String variable) { super(SCompany_.class, forVariable(variable), "null", "company_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCustomer_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCustomer_.java index e822f742be..0a4ed4c6fc 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCustomer_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SCustomer_.java @@ -31,12 +31,6 @@ public class SCustomer_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.ForeignKey customer_NAMEIDFK = createForeignKey(nameId, "ID"); - public final com.querydsl.sql.ForeignKey _order_CUSTOMERIDFK = - createInvForeignKey(id, "CUSTOMER_ID"); - - public final com.querydsl.sql.ForeignKey _store_customer_customersIDFK = - createInvForeignKey(id, "customers_ID"); - public SCustomer_(String variable) { super(SCustomer_.class, forVariable(variable), "null", "customer_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SDepartment_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SDepartment_.java index 226072cdb5..e65d5e29a7 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SDepartment_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SDepartment_.java @@ -28,12 +28,6 @@ public class SDepartment_ extends com.querydsl.sql.RelationalPathBase department_COMPANYIDFK = createForeignKey(companyId, "ID"); - public final com.querydsl.sql.ForeignKey - _company_department_departmentsIDFK = createInvForeignKey(id, "departments_ID"); - - public final com.querydsl.sql.ForeignKey - _department_employee_DepartmentIDFK = createInvForeignKey(id, "Department_ID"); - public SDepartment_(String variable) { super(SDepartment_.class, forVariable(variable), "null", "department_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployee.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployee.java index 8dfa8dcd7f..9128791f10 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployee.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployee.java @@ -36,9 +36,6 @@ public class SEmployee extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey superiorFk = createForeignKey(superiorId, "ID"); - public final com.querydsl.sql.ForeignKey _superiorFk = - createInvForeignKey(id, "SUPERIOR_ID"); - public SEmployee(String variable) { super(SEmployee.class, forVariable(variable), "null", "EMPLOYEE"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployeeJobfunctions.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployeeJobfunctions.java new file mode 100644 index 0000000000..688d225cf0 --- /dev/null +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployeeJobfunctions.java @@ -0,0 +1,46 @@ +package com.querydsl.jpa.domain.sql; + +import static com.querydsl.core.types.PathMetadataFactory.*; + +import com.querydsl.core.types.Path; +import com.querydsl.core.types.PathMetadata; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; + +/** SEmployeeJobfunctions is a Querydsl query type for SEmployeeJobfunctions */ +@Generated("com.querydsl.sql.codegen.MetaDataSerializer") +public class SEmployeeJobfunctions + extends com.querydsl.sql.RelationalPathBase { + + private static final long serialVersionUID = 2101800660; + + public static final SEmployeeJobfunctions employeeJobfunctions = + new SEmployeeJobfunctions("employee_jobfunctions"); + + public SEmployeeJobfunctions(String variable) { + super(SEmployeeJobfunctions.class, forVariable(variable), "null", "employee_jobfunctions"); + addMetadata(); + } + + public SEmployeeJobfunctions(String variable, String schema, String table) { + super(SEmployeeJobfunctions.class, forVariable(variable), schema, table); + addMetadata(); + } + + public SEmployeeJobfunctions(String variable, String schema) { + super(SEmployeeJobfunctions.class, forVariable(variable), schema, "employee_jobfunctions"); + addMetadata(); + } + + public SEmployeeJobfunctions(Path path) { + super(path.getType(), path.getMetadata(), "null", "employee_jobfunctions"); + addMetadata(); + } + + public SEmployeeJobfunctions(PathMetadata metadata) { + super(SEmployeeJobfunctions.class, metadata, "null", "employee_jobfunctions"); + addMetadata(); + } + + public void addMetadata() {} +} diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployee_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployee_.java index 54e8f41222..1477cb133c 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployee_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEmployee_.java @@ -35,15 +35,6 @@ public class SEmployee_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.ForeignKey employee_USERIDFK = createForeignKey(userId, "ID"); - public final com.querydsl.sql.ForeignKey - _employeeJOBFUNCTIONSEmployeeIDFK = createInvForeignKey(id, "Employee_ID"); - - public final com.querydsl.sql.ForeignKey _company_CEOIDFK = - createInvForeignKey(id, "CEO_ID"); - - public final com.querydsl.sql.ForeignKey - _department_employee_employeesIDFK = createInvForeignKey(id, "employees_ID"); - public SEmployee_(String variable) { super(SEmployee_.class, forVariable(variable), "null", "employee_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEviltype_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEviltype_.java index 9d369b3c63..1543c772c7 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEviltype_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SEviltype_.java @@ -86,45 +86,6 @@ public class SEviltype_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.ForeignKey eviltype_DescFK = createForeignKey(_desc, "ID"); - public final com.querydsl.sql.ForeignKey _eviltype_GETCLASSIDFK = - createInvForeignKey(id, "GETCLASS_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_GETMETADATAIDFK = - createInvForeignKey(id, "GETMETADATA_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_GETTYPEIDFK = - createInvForeignKey(id, "GETTYPE_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_GETIDFK = - createInvForeignKey(id, "GET_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_HASHCODEIDFK = - createInvForeignKey(id, "HASHCODE_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_ISNOTNULLIDFK = - createInvForeignKey(id, "ISNOTNULL_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_ISNULLIDFK = - createInvForeignKey(id, "ISNULL_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_NOTIFYALLIDFK = - createInvForeignKey(id, "NOTIFYALL_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_NOTIFYIDFK = - createInvForeignKey(id, "NOTIFY_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_TOSTRINGIDFK = - createInvForeignKey(id, "TOSTRING_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_WAITIDFK = - createInvForeignKey(id, "WAIT_ID"); - - public final com.querydsl.sql.ForeignKey _eviltype_AscFK = - createInvForeignKey(id, "_asc"); - - public final com.querydsl.sql.ForeignKey _eviltype_DescFK = - createInvForeignKey(id, "_desc"); - public SEviltype_(String variable) { super(SEviltype_.class, forVariable(variable), "null", "eviltype_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SFoo_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SFoo_.java index 57ef52b89b..19504628f0 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SFoo_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SFoo_.java @@ -25,9 +25,6 @@ public class SFoo_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _fooNamesFooIdFK = - createInvForeignKey(id, "foo_id"); - public SFoo_(String variable) { super(SFoo_.class, forVariable(variable), "null", "foo_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SHumanHairs.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SHumanHairs.java index 4951d5ae20..b66af8a1dd 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SHumanHairs.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SHumanHairs.java @@ -1,30 +1,22 @@ package com.querydsl.jpa.domain.sql; -import static com.querydsl.core.types.PathMetadataFactory.forVariable; +import static com.querydsl.core.types.PathMetadataFactory.*; import com.querydsl.core.types.Path; import com.querydsl.core.types.PathMetadata; -import com.querydsl.core.types.dsl.NumberPath; -import com.querydsl.sql.ColumnMetadata; -import jakarta.annotation.Generated; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; /** SHumanHairs is a Querydsl query type for SHumanHairs */ @Generated("com.querydsl.sql.codegen.MetaDataSerializer") public class SHumanHairs extends com.querydsl.sql.RelationalPathBase { - private static final long serialVersionUID = 1372028757; + private static final long serialVersionUID = 189604396; - public static final SHumanHairs HumanHairs = new SHumanHairs("Human_hairs"); - - public final NumberPath hairs = createNumber("hairs", Integer.class); - - public final NumberPath humanId = createNumber("humanId", Long.class); - - public final com.querydsl.sql.ForeignKey fk6649531ff097e318 = - createForeignKey(humanId, "id"); + public static final SHumanHairs humanHairs = new SHumanHairs("human_hairs"); public SHumanHairs(String variable) { - super(SHumanHairs.class, forVariable(variable), "", "Human_hairs"); + super(SHumanHairs.class, forVariable(variable), "null", "human_hairs"); addMetadata(); } @@ -33,19 +25,20 @@ public SHumanHairs(String variable, String schema, String table) { addMetadata(); } + public SHumanHairs(String variable, String schema) { + super(SHumanHairs.class, forVariable(variable), schema, "human_hairs"); + addMetadata(); + } + public SHumanHairs(Path path) { - super(path.getType(), path.getMetadata(), "", "Human_hairs"); + super(path.getType(), path.getMetadata(), "null", "human_hairs"); addMetadata(); } public SHumanHairs(PathMetadata metadata) { - super(SHumanHairs.class, metadata, "", "Human_hairs"); + super(SHumanHairs.class, metadata, "null", "human_hairs"); addMetadata(); } - public void addMetadata() { - addMetadata(hairs, ColumnMetadata.named("hairs").withIndex(2).ofType(4).withSize(10)); - addMetadata( - humanId, ColumnMetadata.named("Human_id").withIndex(1).ofType(-5).withSize(19).notNull()); - } + public void addMetadata() {} } diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SItem_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SItem_.java index cd6fb34e96..d2b8f71d10 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SItem_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SItem_.java @@ -42,27 +42,6 @@ public class SItem_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey item_STATUSIDFK = createForeignKey(statusId, "ID"); - public final com.querydsl.sql.ForeignKey _lineItems2LineItemsMapIDFK = - createInvForeignKey(id, "lineItemsMap_ID"); - - public final com.querydsl.sql.ForeignKey _lineItemsLineItemsIDFK = - createInvForeignKey(id, "lineItems_ID"); - - public final com.querydsl.sql.ForeignKey _auditlog_ITEMIDFK = - createInvForeignKey(id, "ITEM_ID"); - - public final com.querydsl.sql.ForeignKey _item_PRODUCTIDFK = - createInvForeignKey(id, "PRODUCT_ID"); - - public final com.querydsl.sql.ForeignKey _item_statuschange_PaymentIDFK = - createInvForeignKey(id, "Payment_ID"); - - public final com.querydsl.sql.ForeignKey _order_item_itemsIDFK = - createInvForeignKey(id, "items_ID"); - - public final com.querydsl.sql.ForeignKey _price_PRODUCTIDFK = - createInvForeignKey(id, "PRODUCT_ID"); - public SItem_(String variable) { super(SItem_.class, forVariable(variable), "null", "item_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLibrary_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLibrary_.java index d407a3d26c..5d23e5f479 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLibrary_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLibrary_.java @@ -21,9 +21,6 @@ public class SLibrary_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(identity); - public final com.querydsl.sql.ForeignKey _bookversion_LIBRARYIDENTITYFK = - createInvForeignKey(identity, "LIBRARY_IDENTITY"); - public SLibrary_(String variable) { super(SLibrary_.class, forVariable(variable), "null", "library_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLineitems.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLineitems.java new file mode 100644 index 0000000000..f3f81c5135 --- /dev/null +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLineitems.java @@ -0,0 +1,44 @@ +package com.querydsl.jpa.domain.sql; + +import static com.querydsl.core.types.PathMetadataFactory.*; + +import com.querydsl.core.types.Path; +import com.querydsl.core.types.PathMetadata; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; + +/** SLineitems is a Querydsl query type for SLineitems */ +@Generated("com.querydsl.sql.codegen.MetaDataSerializer") +public class SLineitems extends com.querydsl.sql.RelationalPathBase { + + private static final long serialVersionUID = -1507451708; + + public static final SLineitems lineitems = new SLineitems("lineitems"); + + public SLineitems(String variable) { + super(SLineitems.class, forVariable(variable), "null", "lineitems"); + addMetadata(); + } + + public SLineitems(String variable, String schema, String table) { + super(SLineitems.class, forVariable(variable), schema, table); + addMetadata(); + } + + public SLineitems(String variable, String schema) { + super(SLineitems.class, forVariable(variable), schema, "lineitems"); + addMetadata(); + } + + public SLineitems(Path path) { + super(path.getType(), path.getMetadata(), "null", "lineitems"); + addMetadata(); + } + + public SLineitems(PathMetadata metadata) { + super(SLineitems.class, metadata, "null", "lineitems"); + addMetadata(); + } + + public void addMetadata() {} +} diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLineitems2.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLineitems2.java new file mode 100644 index 0000000000..5c872e8fa2 --- /dev/null +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLineitems2.java @@ -0,0 +1,44 @@ +package com.querydsl.jpa.domain.sql; + +import static com.querydsl.core.types.PathMetadataFactory.*; + +import com.querydsl.core.types.Path; +import com.querydsl.core.types.PathMetadata; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; + +/** SLineitems2 is a Querydsl query type for SLineitems2 */ +@Generated("com.querydsl.sql.codegen.MetaDataSerializer") +public class SLineitems2 extends com.querydsl.sql.RelationalPathBase { + + private static final long serialVersionUID = 513637358; + + public static final SLineitems2 lineitems2 = new SLineitems2("lineitems2"); + + public SLineitems2(String variable) { + super(SLineitems2.class, forVariable(variable), "null", "lineitems2"); + addMetadata(); + } + + public SLineitems2(String variable, String schema, String table) { + super(SLineitems2.class, forVariable(variable), schema, table); + addMetadata(); + } + + public SLineitems2(String variable, String schema) { + super(SLineitems2.class, forVariable(variable), schema, "lineitems2"); + addMetadata(); + } + + public SLineitems2(Path path) { + super(path.getType(), path.getMetadata(), "null", "lineitems2"); + addMetadata(); + } + + public SLineitems2(PathMetadata metadata) { + super(SLineitems2.class, metadata, "null", "lineitems2"); + addMetadata(); + } + + public void addMetadata() {} +} diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLocation_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLocation_.java index bfd999903f..7ffb8b1d1a 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLocation_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SLocation_.java @@ -23,9 +23,6 @@ public class SLocation_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _store_LOCATIONIDFK = - createInvForeignKey(id, "LOCATION_ID"); - public SLocation_(String variable) { super(SLocation_.class, forVariable(variable), "null", "location_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SMammal.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SMammal.java index 4263bf8063..8819991187 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SMammal.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SMammal.java @@ -23,12 +23,6 @@ public class SMammal extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _humanHAIRSHumanIDFK = - createInvForeignKey(id, "Human_ID"); - - public final com.querydsl.sql.ForeignKey _wORLDMAMMALMammalsIDFK = - createInvForeignKey(id, "mammals_ID"); - public SMammal(String variable) { super(SMammal.class, forVariable(variable), "null", "MAMMAL"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SMyotherentity.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SMyotherentity.java index de964930c2..76c94e0ccf 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SMyotherentity.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SMyotherentity.java @@ -21,9 +21,6 @@ public class SMyotherentity extends com.querydsl.sql.RelationalPathBase primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _myentityAttributewithinitproblemIdFk = - createInvForeignKey(id, "ATTRIBUTEWITHINITPROBLEM_ID"); - public SMyotherentity(String variable) { super(SMyotherentity.class, forVariable(variable), "null", "MYOTHERENTITY"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SName_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SName_.java index 11f21cb2f8..4d62ae999c 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SName_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SName_.java @@ -27,9 +27,6 @@ public class SName_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _customer_NAMEIDFK = - createInvForeignKey(id, "NAME_ID"); - public SName_(String variable) { super(SName_.class, forVariable(variable), "null", "name_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNamelistNames.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNamelistNames.java new file mode 100644 index 0000000000..1280c89521 --- /dev/null +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNamelistNames.java @@ -0,0 +1,44 @@ +package com.querydsl.jpa.domain.sql; + +import static com.querydsl.core.types.PathMetadataFactory.*; + +import com.querydsl.core.types.Path; +import com.querydsl.core.types.PathMetadata; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; + +/** SNamelistNames is a Querydsl query type for SNamelistNames */ +@Generated("com.querydsl.sql.codegen.MetaDataSerializer") +public class SNamelistNames extends com.querydsl.sql.RelationalPathBase { + + private static final long serialVersionUID = -136041577; + + public static final SNamelistNames namelistNames = new SNamelistNames("namelist_names"); + + public SNamelistNames(String variable) { + super(SNamelistNames.class, forVariable(variable), "null", "namelist_names"); + addMetadata(); + } + + public SNamelistNames(String variable, String schema, String table) { + super(SNamelistNames.class, forVariable(variable), schema, table); + addMetadata(); + } + + public SNamelistNames(String variable, String schema) { + super(SNamelistNames.class, forVariable(variable), schema, "namelist_names"); + addMetadata(); + } + + public SNamelistNames(Path path) { + super(path.getType(), path.getMetadata(), "null", "namelist_names"); + addMetadata(); + } + + public SNamelistNames(PathMetadata metadata) { + super(SNamelistNames.class, metadata, "null", "namelist_names"); + addMetadata(); + } + + public void addMetadata() {} +} diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNamelist_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNamelist_.java index 54b985a0fe..aaa4440249 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNamelist_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNamelist_.java @@ -21,9 +21,6 @@ public class SNamelist_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _nameListNAMESNameListIDFK = - createInvForeignKey(id, "NameList_ID"); - public SNamelist_(String variable) { super(SNamelist_.class, forVariable(variable), "null", "namelist_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNationality_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNationality_.java index 8d9b541d34..7cee7fd4b0 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNationality_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SNationality_.java @@ -26,9 +26,6 @@ public class SNationality_ extends com.querydsl.sql.RelationalPathBase nationality_CALENDARIDFK = createForeignKey(calendarId, "ID"); - public final com.querydsl.sql.ForeignKey _person_NATIONALITYIDFK = - createInvForeignKey(id, "NATIONALITY_ID"); - public SNationality_(String variable) { super(SNationality_.class, forVariable(variable), "null", "nationality_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SOrderDelivereditemindices.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SOrderDelivereditemindices.java new file mode 100644 index 0000000000..74c89a7528 --- /dev/null +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SOrderDelivereditemindices.java @@ -0,0 +1,54 @@ +package com.querydsl.jpa.domain.sql; + +import static com.querydsl.core.types.PathMetadataFactory.*; + +import com.querydsl.core.types.Path; +import com.querydsl.core.types.PathMetadata; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; + +/** SOrderDelivereditemindices is a Querydsl query type for SOrderDelivereditemindices */ +@Generated("com.querydsl.sql.codegen.MetaDataSerializer") +public class SOrderDelivereditemindices + extends com.querydsl.sql.RelationalPathBase { + + private static final long serialVersionUID = -1737470186; + + public static final SOrderDelivereditemindices orderDelivereditemindices = + new SOrderDelivereditemindices("order_delivereditemindices"); + + public SOrderDelivereditemindices(String variable) { + super( + SOrderDelivereditemindices.class, + forVariable(variable), + "null", + "order_delivereditemindices"); + addMetadata(); + } + + public SOrderDelivereditemindices(String variable, String schema, String table) { + super(SOrderDelivereditemindices.class, forVariable(variable), schema, table); + addMetadata(); + } + + public SOrderDelivereditemindices(String variable, String schema) { + super( + SOrderDelivereditemindices.class, + forVariable(variable), + schema, + "order_delivereditemindices"); + addMetadata(); + } + + public SOrderDelivereditemindices(Path path) { + super(path.getType(), path.getMetadata(), "null", "order_delivereditemindices"); + addMetadata(); + } + + public SOrderDelivereditemindices(PathMetadata metadata) { + super(SOrderDelivereditemindices.class, metadata, "null", "order_delivereditemindices"); + addMetadata(); + } + + public void addMetadata() {} +} diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SOrder_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SOrder_.java index 7ea98eb535..076b720790 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SOrder_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SOrder_.java @@ -28,21 +28,6 @@ public class SOrder_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey order_CUSTOMERIDFK = createForeignKey(customerId, "ID"); - public final com.querydsl.sql.ForeignKey _lineItems2OrderIDFK = - createInvForeignKey(id, "Order_ID"); - - public final com.querydsl.sql.ForeignKey _lineItemsOrderIDFK = - createInvForeignKey(id, "Order_ID"); - - public final com.querydsl.sql.ForeignKey - _orderDELIVEREDITEMINDICESOrderIDFK = createInvForeignKey(id, "Order_ID"); - - public final com.querydsl.sql.ForeignKey _customer_CURRENTORDERIDFK = - createInvForeignKey(id, "CURRENTORDER_ID"); - - public final com.querydsl.sql.ForeignKey _order_item_OrderIDFK = - createInvForeignKey(id, "Order_ID"); - public SOrder_(String variable) { super(SOrder_.class, forVariable(variable), "null", "order_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SParameter_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SParameter_.java index c137a17677..16987b632c 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SParameter_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SParameter_.java @@ -21,9 +21,6 @@ public class SParameter_ extends com.querydsl.sql.RelationalPathBase primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _formula_PARAMETERIDFK = - createInvForeignKey(id, "PARAMETER_ID"); - public SParameter_(String variable) { super(SParameter_.class, forVariable(variable), "null", "parameter_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SParent2.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SParent2.java index 680ef1ca41..d152f34894 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SParent2.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SParent2.java @@ -21,9 +21,6 @@ public class SParent2 extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _child2ParentIdFk = - createInvForeignKey(id, "PARENT_ID"); - public SParent2(String variable) { super(SParent2.class, forVariable(variable), "null", "PARENT2"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPerson_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPerson_.java index beddeb298a..085a7ca390 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPerson_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPerson_.java @@ -35,9 +35,6 @@ public class SPerson_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey person_PIDIDFK = createForeignKey(pidId, "ID"); - public final com.querydsl.sql.ForeignKey _account_OWNERIFK = - createInvForeignKey(i, "OWNER_I"); - public SPerson_(String variable) { super(SPerson_.class, forVariable(variable), "null", "person_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPersonid_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPersonid_.java index d2390539e2..44798b2e24 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPersonid_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPersonid_.java @@ -25,9 +25,6 @@ public class SPersonid_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _person_PIDIDFK = - createInvForeignKey(id, "PID_ID"); - public SPersonid_(String variable) { super(SPersonid_.class, forVariable(variable), "null", "personid_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPlayerScores.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPlayerScores.java index ba837876da..8b4256d873 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPlayerScores.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPlayerScores.java @@ -1,30 +1,22 @@ package com.querydsl.jpa.domain.sql; -import static com.querydsl.core.types.PathMetadataFactory.forVariable; +import static com.querydsl.core.types.PathMetadataFactory.*; import com.querydsl.core.types.Path; import com.querydsl.core.types.PathMetadata; -import com.querydsl.core.types.dsl.NumberPath; -import com.querydsl.sql.ColumnMetadata; -import jakarta.annotation.Generated; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; /** SPlayerScores is a Querydsl query type for SPlayerScores */ @Generated("com.querydsl.sql.codegen.MetaDataSerializer") public class SPlayerScores extends com.querydsl.sql.RelationalPathBase { - private static final long serialVersionUID = 1627547091; + private static final long serialVersionUID = -810897686; - public static final SPlayerScores PlayerScores = new SPlayerScores("Player_scores"); - - public final NumberPath playerId = createNumber("playerId", Long.class); - - public final NumberPath scores = createNumber("scores", Integer.class); - - public final com.querydsl.sql.ForeignKey fkd5dc571fd8736d5c = - createForeignKey(playerId, "id"); + public static final SPlayerScores playerScores = new SPlayerScores("player_scores"); public SPlayerScores(String variable) { - super(SPlayerScores.class, forVariable(variable), "", "Player_scores"); + super(SPlayerScores.class, forVariable(variable), "null", "player_scores"); addMetadata(); } @@ -33,19 +25,20 @@ public SPlayerScores(String variable, String schema, String table) { addMetadata(); } + public SPlayerScores(String variable, String schema) { + super(SPlayerScores.class, forVariable(variable), schema, "player_scores"); + addMetadata(); + } + public SPlayerScores(Path path) { - super(path.getType(), path.getMetadata(), "", "Player_scores"); + super(path.getType(), path.getMetadata(), "null", "player_scores"); addMetadata(); } public SPlayerScores(PathMetadata metadata) { - super(SPlayerScores.class, metadata, "", "Player_scores"); + super(SPlayerScores.class, metadata, "null", "player_scores"); addMetadata(); } - public void addMetadata() { - addMetadata( - playerId, ColumnMetadata.named("Player_id").withIndex(1).ofType(-5).withSize(19).notNull()); - addMetadata(scores, ColumnMetadata.named("scores").withIndex(2).ofType(4).withSize(10)); - } + public void addMetadata() {} } diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPlayer_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPlayer_.java index 99dbc3cf2a..7d8a7d396e 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPlayer_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPlayer_.java @@ -21,9 +21,6 @@ public class SPlayer_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _playerSCORESPlayerIDFK = - createInvForeignKey(id, "Player_ID"); - public SPlayer_(String variable) { super(SPlayer_.class, forVariable(variable), "null", "player_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPrice_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPrice_.java index 310fdbd23a..617600b8f1 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPrice_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SPrice_.java @@ -28,9 +28,6 @@ public class SPrice_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey price_PRODUCTIDFK = createForeignKey(productId, "ID"); - public final com.querydsl.sql.ForeignKey _catalog_price_pricesIDFK = - createInvForeignKey(id, "prices_ID"); - public SPrice_(String variable) { super(SPrice_.class, forVariable(variable), "null", "price_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SShowActs.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SShowActs.java index 82053b0262..8b36e03a12 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SShowActs.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SShowActs.java @@ -1,35 +1,22 @@ package com.querydsl.jpa.domain.sql; -import static com.querydsl.core.types.PathMetadataFactory.forVariable; +import static com.querydsl.core.types.PathMetadataFactory.*; import com.querydsl.core.types.Path; import com.querydsl.core.types.PathMetadata; -import com.querydsl.core.types.dsl.NumberPath; -import com.querydsl.core.types.dsl.StringPath; -import com.querydsl.sql.ColumnMetadata; -import jakarta.annotation.Generated; +import com.querydsl.core.types.dsl.*; +import javax.annotation.processing.Generated; /** SShowActs is a Querydsl query type for SShowActs */ @Generated("com.querydsl.sql.codegen.MetaDataSerializer") public class SShowActs extends com.querydsl.sql.RelationalPathBase { - private static final long serialVersionUID = 283130543; + private static final long serialVersionUID = -330389690; - public static final SShowActs ShowActs = new SShowActs("Show_acts"); - - public final StringPath acts = createString("acts"); - - public final StringPath actsKEY = createString("actsKEY"); - - public final NumberPath showId = createNumber("showId", Long.class); - - public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(showId, actsKEY); - - public final com.querydsl.sql.ForeignKey fk5f6ee03ab40105c = - createForeignKey(showId, "id"); + public static final SShowActs showActs = new SShowActs("show_acts"); public SShowActs(String variable) { - super(SShowActs.class, forVariable(variable), "", "Show_acts"); + super(SShowActs.class, forVariable(variable), "null", "show_acts"); addMetadata(); } @@ -38,21 +25,20 @@ public SShowActs(String variable, String schema, String table) { addMetadata(); } + public SShowActs(String variable, String schema) { + super(SShowActs.class, forVariable(variable), schema, "show_acts"); + addMetadata(); + } + public SShowActs(Path path) { - super(path.getType(), path.getMetadata(), "", "Show_acts"); + super(path.getType(), path.getMetadata(), "null", "show_acts"); addMetadata(); } public SShowActs(PathMetadata metadata) { - super(SShowActs.class, metadata, "", "Show_acts"); + super(SShowActs.class, metadata, "null", "show_acts"); addMetadata(); } - public void addMetadata() { - addMetadata(acts, ColumnMetadata.named("acts").withIndex(2).ofType(12).withSize(255)); - addMetadata( - actsKEY, ColumnMetadata.named("acts_KEY").withIndex(3).ofType(12).withSize(255).notNull()); - addMetadata( - showId, ColumnMetadata.named("Show_id").withIndex(1).ofType(-5).withSize(19).notNull()); - } + public void addMetadata() {} } diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SShow_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SShow_.java index d7ee518956..1e1cc74fef 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SShow_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SShow_.java @@ -26,12 +26,6 @@ public class SShow_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey show_PARENTIDFK = createForeignKey(parentId, "ID"); - public final com.querydsl.sql.ForeignKey _showACTSShowIDFK = - createInvForeignKey(id, "Show_ID"); - - public final com.querydsl.sql.ForeignKey _show_PARENTIDFK = - createInvForeignKey(id, "PARENT_ID"); - public SShow_(String variable) { super(SShow_.class, forVariable(variable), "null", "show_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStatus_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStatus_.java index 8d17ad588f..2e1be5eb87 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStatus_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStatus_.java @@ -23,12 +23,6 @@ public class SStatus_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _item_CURRENTSTATUSIDFK = - createInvForeignKey(id, "CURRENTSTATUS_ID"); - - public final com.querydsl.sql.ForeignKey _item_STATUSIDFK = - createInvForeignKey(id, "STATUS_ID"); - public SStatus_(String variable) { super(SStatus_.class, forVariable(variable), "null", "status_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStatuschange_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStatuschange_.java index 3c396780e9..31e7986fcc 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStatuschange_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStatuschange_.java @@ -24,9 +24,6 @@ public class SStatuschange_ extends com.querydsl.sql.RelationalPathBase primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey - _item_statuschange_statusChangesIDFK = createInvForeignKey(id, "statusChanges_ID"); - public SStatuschange_(String variable) { super(SStatuschange_.class, forVariable(variable), "null", "statuschange_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStore_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStore_.java index 08b7e0f345..f40703085d 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStore_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SStore_.java @@ -26,9 +26,6 @@ public class SStore_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey store_LOCATIONIDFK = createForeignKey(locationId, "ID"); - public final com.querydsl.sql.ForeignKey _store_customer_StoreIDFK = - createInvForeignKey(id, "Store_ID"); - public SStore_(String variable) { super(SStore_.class, forVariable(variable), "null", "store_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUser2_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUser2_.java index 8012a12703..9d58a16b47 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUser2_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUser2_.java @@ -46,9 +46,6 @@ public class SUser2_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _user2_userprop_User2IDFK = - createInvForeignKey(id, "User2_ID"); - public SUser2_(String variable) { super(SUser2_.class, forVariable(variable), "null", "user2_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUser_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUser_.java index 6711883e15..35e3111a4d 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUser_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUser_.java @@ -32,9 +32,6 @@ public class SUser_ extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.ForeignKey user_COMPANYIDFK = createForeignKey(companyId, "ID"); - public final com.querydsl.sql.ForeignKey _employee_USERIDFK = - createInvForeignKey(id, "USER_ID"); - public SUser_(String variable) { super(SUser_.class, forVariable(variable), "null", "user_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUserprop_.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUserprop_.java index 952ce1bd2b..665040aeb5 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUserprop_.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SUserprop_.java @@ -40,15 +40,6 @@ public class SUserprop_ extends com.querydsl.sql.RelationalPathBase public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _user2_userprop_propertiesIDFK = - createInvForeignKey(id, "properties_ID"); - - public final com.querydsl.sql.ForeignKey _userprop_category_UserPropIDFK = - createInvForeignKey(id, "UserProp_ID"); - - public final com.querydsl.sql.ForeignKey - _userprop_categoryprop_UserPropIDFK = createInvForeignKey(id, "UserProp_ID"); - public SUserprop_(String variable) { super(SUserprop_.class, forVariable(variable), "null", "userprop_"); addMetadata(); diff --git a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SWorld.java b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SWorld.java index 153d6a89f2..cf50502269 100644 --- a/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SWorld.java +++ b/querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SWorld.java @@ -21,9 +21,6 @@ public class SWorld extends com.querydsl.sql.RelationalPathBase { public final com.querydsl.sql.PrimaryKey primary = createPrimaryKey(id); - public final com.querydsl.sql.ForeignKey _wORLDMAMMALWorldIDFK = - createInvForeignKey(id, "World_ID"); - public SWorld(String variable) { super(SWorld.class, forVariable(variable), "null", "WORLD"); addMetadata(); diff --git a/querydsl-sql-codegen/src/test/java/com/querydsl/sql/codegen/Export.java b/querydsl-sql-codegen/src/test/java/com/querydsl/sql/codegen/Export.java index 3b1501c61b..0bc0067f80 100644 --- a/querydsl-sql-codegen/src/test/java/com/querydsl/sql/codegen/Export.java +++ b/querydsl-sql-codegen/src/test/java/com/querydsl/sql/codegen/Export.java @@ -17,7 +17,7 @@ public static void main(String[] args) throws Exception { exporter.setNamePrefix("S"); exporter.setPackageName("com.querydsl.jpa.domain.sql"); exporter.setTargetFolder(new File("../querydsl-jpa/src/test/java")); - // exporter.setLowerCase(true); + exporter.setExportInverseForeignKeys(false); exporter.export(conn.getMetaData()); conn.close();