Skip to content

Commit

Permalink
Remove inverse keys
Browse files Browse the repository at this point in the history
  • Loading branch information
velo committed Jan 11, 2024
1 parent 7a4c5e7 commit 855523f
Show file tree
Hide file tree
Showing 49 changed files with 290 additions and 352 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ public class SAnimal_ extends com.querydsl.sql.RelationalPathBase<SAnimal_> {
public final com.querydsl.sql.ForeignKey<SAnimal_> animal_MATEIDFK =
createForeignKey(mateId, "ID");

public final com.querydsl.sql.ForeignKey<SAnimal_> _animal_MATEIDFK =
createInvForeignKey(id, "MATE_ID");

public final com.querydsl.sql.ForeignKey<SKittens> _kittensCatIdFK =
createInvForeignKey(id, "cat_id");

public final com.querydsl.sql.ForeignKey<SKittens> _kittensKittenIdFK =
createInvForeignKey(id, "kitten_id");

public final com.querydsl.sql.ForeignKey<SKittensSet> _kittensSetCatIdFK =
createInvForeignKey(id, "cat_id");

public final com.querydsl.sql.ForeignKey<SKittensSet> _kittensSetKittenIdFK =
createInvForeignKey(id, "kitten_id");

public SAnimal_(String variable) {
super(SAnimal_.class, forVariable(variable), "null", "animal_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public class SAuthor_ extends com.querydsl.sql.RelationalPathBase<SAuthor_> {

public final com.querydsl.sql.PrimaryKey<SAuthor_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SBook_> _book_AUTHORIDFK =
createInvForeignKey(id, "AUTHOR_ID");

public SAuthor_(String variable) {
super(SAuthor_.class, forVariable(variable), "null", "author_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public class SBookid_ extends com.querydsl.sql.RelationalPathBase<SBookid_> {

public final com.querydsl.sql.PrimaryKey<SBookid_> primary = createPrimaryKey(identity);

public final com.querydsl.sql.ForeignKey<SBookversion_> _bookversion_BOOKIDIDENTITYFK =
createInvForeignKey(identity, "BOOKID_IDENTITY");

public SBookid_(String variable) {
super(SBookid_.class, forVariable(variable), "null", "bookid_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */
Expand Down Expand Up @@ -35,11 +34,6 @@ public class SBookversion_ extends com.querydsl.sql.RelationalPathBase<SBookvers
public final com.querydsl.sql.ForeignKey<SLibrary_> bookversion_LIBRARYIDENTITYFK =
createForeignKey(libraryIdentity, "IDENTITY");

public final com.querydsl.sql.ForeignKey<SBookBookmarks> _bookBookmarksBOOKIDIDENTITYFK =
createInvForeignKey(
Arrays.asList(bookidIdentity, libraryIdentity),
Arrays.asList("BOOKID_IDENTITY", "LIBRARY_IDENTITY"));

public SBookversion_(String variable) {
super(SBookversion_.class, forVariable(variable), "null", "bookversion_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
@@ -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<SCalendarHolidays> {

private static final long serialVersionUID = 850508650;
private static final long serialVersionUID = 324116737;

public static final SCalendarHolidays CalendarHolidays =
new SCalendarHolidays("Calendar_holidays");

public final NumberPath<Integer> calendarId = createNumber("calendarId", Integer.class);

public final DatePath<java.sql.Date> holidays = createDate("holidays", java.sql.Date.class);

public final StringPath holidaysKEY = createString("holidaysKEY");

public final com.querydsl.sql.PrimaryKey<SCalendarHolidays> primary =
createPrimaryKey(calendarId, holidaysKEY);

public final com.querydsl.sql.ForeignKey<SCalendar> 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();
}

Expand All @@ -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<? extends SCalendarHolidays> 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() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ public class SCalendar_ extends com.querydsl.sql.RelationalPathBase<SCalendar_>

public final com.querydsl.sql.PrimaryKey<SCalendar_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SCalendarHOLIDAYS> _calendarHOLIDAYSCalendarIDFK =
createInvForeignKey(id, "Calendar_ID");

public final com.querydsl.sql.ForeignKey<SNationality_> _nationality_CALENDARIDFK =
createInvForeignKey(id, "CALENDAR_ID");

public SCalendar_(String variable) {
super(SCalendar_.class, forVariable(variable), "null", "calendar_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public class SCatalog_ extends com.querydsl.sql.RelationalPathBase<SCatalog_> {

public final com.querydsl.sql.PrimaryKey<SCatalog_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SCatalog_price_> _catalog_price_CatalogIDFK =
createInvForeignKey(id, "Catalog_ID");

public SCatalog_(String variable) {
super(SCatalog_.class, forVariable(variable), "null", "catalog_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ public class SCategory_ extends com.querydsl.sql.RelationalPathBase<SCategory_>

public final com.querydsl.sql.PrimaryKey<SCategory_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SCategory_category_> _category_category_childIdFK =
createInvForeignKey(id, "childId");

public final com.querydsl.sql.ForeignKey<SCategory_category_> _category_category_parentIdFK =
createInvForeignKey(id, "parentId");

public final com.querydsl.sql.ForeignKey<SCategory_categoryprop_>
_category_categoryprop_CategoryIDFK = createInvForeignKey(id, "Category_ID");

public final com.querydsl.sql.ForeignKey<SUserprop_category_>
_userprop_category_childCategoriesIDFK = createInvForeignKey(id, "childCategories_ID");

public SCategory_(String variable) {
super(SCategory_.class, forVariable(variable), "null", "category_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ public class SCategoryprop_ extends com.querydsl.sql.RelationalPathBase<SCategor

public final com.querydsl.sql.PrimaryKey<SCategoryprop_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SCategory_categoryprop_>
_category_categoryprop_propertiesIDFK = createInvForeignKey(id, "properties_ID");

public final com.querydsl.sql.ForeignKey<SUserprop_categoryprop_>
_userprop_categoryprop_propertiesIDFK = createInvForeignKey(id, "properties_ID");

public SCategoryprop_(String variable) {
super(SCategoryprop_.class, forVariable(variable), "null", "categoryprop_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ public class SCompany_ extends com.querydsl.sql.RelationalPathBase<SCompany_> {
public final com.querydsl.sql.ForeignKey<SEmployee_> company_CEOIDFK =
createForeignKey(ceoId, "ID");

public final com.querydsl.sql.ForeignKey<SCompany_department_> _company_department_CompanyIDFK =
createInvForeignKey(id, "Company_ID");

public final com.querydsl.sql.ForeignKey<SDepartment_> _department_COMPANYIDFK =
createInvForeignKey(id, "COMPANY_ID");

public final com.querydsl.sql.ForeignKey<SEmployee_> _employee_COMPANYIDFK =
createInvForeignKey(id, "COMPANY_ID");

public final com.querydsl.sql.ForeignKey<SUser_> _user_COMPANYIDFK =
createInvForeignKey(id, "COMPANY_ID");

public SCompany_(String variable) {
super(SCompany_.class, forVariable(variable), "null", "company_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ public class SCustomer_ extends com.querydsl.sql.RelationalPathBase<SCustomer_>
public final com.querydsl.sql.ForeignKey<SName_> customer_NAMEIDFK =
createForeignKey(nameId, "ID");

public final com.querydsl.sql.ForeignKey<SOrder_> _order_CUSTOMERIDFK =
createInvForeignKey(id, "CUSTOMER_ID");

public final com.querydsl.sql.ForeignKey<SStore_customer_> _store_customer_customersIDFK =
createInvForeignKey(id, "customers_ID");

public SCustomer_(String variable) {
super(SCustomer_.class, forVariable(variable), "null", "customer_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ public class SDepartment_ extends com.querydsl.sql.RelationalPathBase<SDepartmen
public final com.querydsl.sql.ForeignKey<SCompany_> department_COMPANYIDFK =
createForeignKey(companyId, "ID");

public final com.querydsl.sql.ForeignKey<SCompany_department_>
_company_department_departmentsIDFK = createInvForeignKey(id, "departments_ID");

public final com.querydsl.sql.ForeignKey<SDepartment_employee_>
_department_employee_DepartmentIDFK = createInvForeignKey(id, "Department_ID");

public SDepartment_(String variable) {
super(SDepartment_.class, forVariable(variable), "null", "department_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public class SEmployee extends com.querydsl.sql.RelationalPathBase<SEmployee> {
public final com.querydsl.sql.ForeignKey<SEmployee> superiorFk =
createForeignKey(superiorId, "ID");

public final com.querydsl.sql.ForeignKey<SEmployee> _superiorFk =
createInvForeignKey(id, "SUPERIOR_ID");

public SEmployee(String variable) {
super(SEmployee.class, forVariable(variable), "null", "EMPLOYEE");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
@@ -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<SEmployeeJobfunctions> {

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<? extends SEmployeeJobfunctions> 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() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ public class SEmployee_ extends com.querydsl.sql.RelationalPathBase<SEmployee_>
public final com.querydsl.sql.ForeignKey<SUser_> employee_USERIDFK =
createForeignKey(userId, "ID");

public final com.querydsl.sql.ForeignKey<SEmployeeJOBFUNCTIONS>
_employeeJOBFUNCTIONSEmployeeIDFK = createInvForeignKey(id, "Employee_ID");

public final com.querydsl.sql.ForeignKey<SCompany_> _company_CEOIDFK =
createInvForeignKey(id, "CEO_ID");

public final com.querydsl.sql.ForeignKey<SDepartment_employee_>
_department_employee_employeesIDFK = createInvForeignKey(id, "employees_ID");

public SEmployee_(String variable) {
super(SEmployee_.class, forVariable(variable), "null", "employee_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,45 +86,6 @@ public class SEviltype_ extends com.querydsl.sql.RelationalPathBase<SEviltype_>
public final com.querydsl.sql.ForeignKey<SEviltype_> eviltype_DescFK =
createForeignKey(_desc, "ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_GETCLASSIDFK =
createInvForeignKey(id, "GETCLASS_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_GETMETADATAIDFK =
createInvForeignKey(id, "GETMETADATA_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_GETTYPEIDFK =
createInvForeignKey(id, "GETTYPE_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_GETIDFK =
createInvForeignKey(id, "GET_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_HASHCODEIDFK =
createInvForeignKey(id, "HASHCODE_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_ISNOTNULLIDFK =
createInvForeignKey(id, "ISNOTNULL_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_ISNULLIDFK =
createInvForeignKey(id, "ISNULL_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_NOTIFYALLIDFK =
createInvForeignKey(id, "NOTIFYALL_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_NOTIFYIDFK =
createInvForeignKey(id, "NOTIFY_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_TOSTRINGIDFK =
createInvForeignKey(id, "TOSTRING_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_WAITIDFK =
createInvForeignKey(id, "WAIT_ID");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_AscFK =
createInvForeignKey(id, "_asc");

public final com.querydsl.sql.ForeignKey<SEviltype_> _eviltype_DescFK =
createInvForeignKey(id, "_desc");

public SEviltype_(String variable) {
super(SEviltype_.class, forVariable(variable), "null", "eviltype_");
addMetadata();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public class SFoo_ extends com.querydsl.sql.RelationalPathBase<SFoo_> {

public final com.querydsl.sql.PrimaryKey<SFoo_> primary = createPrimaryKey(id);

public final com.querydsl.sql.ForeignKey<SFooNames> _fooNamesFooIdFK =
createInvForeignKey(id, "foo_id");

public SFoo_(String variable) {
super(SFoo_.class, forVariable(variable), "null", "foo_");
addMetadata();
Expand Down
Loading

0 comments on commit 855523f

Please sign in to comment.