Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.api.account.entity;
package com.example.api.business.domain;

import static com.querydsl.core.types.PathMetadataFactory.*;

Expand All @@ -10,14 +10,14 @@


/**
* QLocation is a Querydsl query type for Location
* QBusinessLocation is a Querydsl query type for BusinessLocation
*/
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
public class QLocation extends EntityPathBase<Location> {
public class QBusinessLocation extends EntityPathBase<BusinessLocation> {

private static final long serialVersionUID = -590127238L;
private static final long serialVersionUID = 1235580438L;

public static final QLocation location = new QLocation("location");
public static final QBusinessLocation businessLocation = new QBusinessLocation("businessLocation");

public final com.example.api.domain.QBaseEntity _super = new com.example.api.domain.QBaseEntity(this);

Expand All @@ -35,16 +35,16 @@ public class QLocation extends EntityPathBase<Location> {

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

public QLocation(String variable) {
super(Location.class, forVariable(variable));
public QBusinessLocation(String variable) {
super(BusinessLocation.class, forVariable(variable));
}

public QLocation(Path<? extends Location> path) {
public QBusinessLocation(Path<? extends BusinessLocation> path) {
super(path.getType(), path.getMetadata());
}

public QLocation(PathMetadata metadata) {
super(Location.class, metadata);
public QBusinessLocation(PathMetadata metadata) {
super(BusinessLocation.class, metadata);
}

}
Expand Down
4 changes: 2 additions & 2 deletions src/main/generated/com/example/api/domain/QBusiness.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class QBusiness extends EntityPathBase<Business> {

public final QAccount employer;

public final com.example.api.account.entity.QLocation location;
public final com.example.api.business.domain.QBusinessLocation location;

public final DatePath<java.time.LocalDate> openDate = createDate("openDate", java.time.LocalDate.class);

Expand Down Expand Up @@ -65,7 +65,7 @@ public QBusiness(PathMetadata metadata, PathInits inits) {
public QBusiness(Class<? extends Business> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.employer = inits.isInitialized("employer") ? new QAccount(forProperty("employer")) : null;
this.location = inits.isInitialized("location") ? new com.example.api.account.entity.QLocation(forProperty("location")) : null;
this.location = inits.isInitialized("location") ? new com.example.api.business.domain.QBusinessLocation(forProperty("location")) : null;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public QBusinessCategory(PathMetadata metadata, PathInits inits) {
public QBusinessCategory(Class<? extends BusinessCategory> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.business = inits.isInitialized("business") ? new QBusiness(forProperty("business"), inits.get("business")) : null;
this.category = inits.isInitialized("category") ? new QCategory(forProperty("category"), inits.get("category")) : null;
this.category = inits.isInitialized("category") ? new QCategory(forProperty("category")) : null;
}

}
Expand Down
20 changes: 3 additions & 17 deletions src/main/generated/com/example/api/domain/QCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.querydsl.core.types.PathMetadata;
import javax.annotation.processing.Generated;
import com.querydsl.core.types.Path;
import com.querydsl.core.types.dsl.PathInits;


/**
Expand All @@ -18,14 +17,10 @@ public class QCategory extends EntityPathBase<Category> {

private static final long serialVersionUID = -1449757245L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QCategory category = new QCategory("category");

public final QBaseEntity _super = new QBaseEntity(this);

public final QAccount account;

public final NumberPath<Long> categoryId = createNumber("categoryId", Long.class);

public final StringPath categoryName = createString("categoryName");
Expand All @@ -37,24 +32,15 @@ public class QCategory extends EntityPathBase<Category> {
public final DateTimePath<java.time.LocalDateTime> updatedDate = _super.updatedDate;

public QCategory(String variable) {
this(Category.class, forVariable(variable), INITS);
super(Category.class, forVariable(variable));
}

public QCategory(Path<? extends Category> path) {
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
super(path.getType(), path.getMetadata());
}

public QCategory(PathMetadata metadata) {
this(metadata, PathInits.getFor(metadata, INITS));
}

public QCategory(PathMetadata metadata, PathInits inits) {
this(Category.class, metadata, inits);
}

public QCategory(Class<? extends Category> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.account = inits.isInitialized("account") ? new QAccount(forProperty("account")) : null;
super(Category.class, metadata);
}

}
Expand Down
47 changes: 47 additions & 0 deletions src/main/generated/com/example/api/domain/QCityDistrict.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package com.example.api.domain;

import static com.querydsl.core.types.PathMetadataFactory.*;

import com.querydsl.core.types.dsl.*;

import com.querydsl.core.types.PathMetadata;
import javax.annotation.processing.Generated;
import com.querydsl.core.types.Path;


/**
* QCityDistrict is a Querydsl query type for CityDistrict
*/
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
public class QCityDistrict extends EntityPathBase<CityDistrict> {

private static final long serialVersionUID = 922969182L;

public static final QCityDistrict cityDistrict = new QCityDistrict("cityDistrict");

public final QBaseEntity _super = new QBaseEntity(this);

//inherited
public final DateTimePath<java.time.LocalDateTime> createdDate = _super.createdDate;

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

public final NumberPath<Long> id = createNumber("id", Long.class);

//inherited
public final DateTimePath<java.time.LocalDateTime> updatedDate = _super.updatedDate;

public QCityDistrict(String variable) {
super(CityDistrict.class, forVariable(variable));
}

public QCityDistrict(Path<? extends CityDistrict> path) {
super(path.getType(), path.getMetadata());
}

public QCityDistrict(PathMetadata metadata) {
super(CityDistrict.class, metadata);
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ public class QExternalCareer extends EntityPathBase<ExternalCareer> {

public final QBaseEntity _super = new QBaseEntity(this);

public final QCategory category;

//inherited
public final DateTimePath<java.time.LocalDateTime> createdDate = _super.createdDate;

public final QAccount employee;

public final NumberPath<Long> id = createNumber("id", Long.class);

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

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

//inherited
public final DateTimePath<java.time.LocalDateTime> updatedDate = _super.updatedDate;

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

public QExternalCareer(String variable) {
this(ExternalCareer.class, forVariable(variable), INITS);
}
Expand All @@ -56,6 +56,7 @@ public QExternalCareer(PathMetadata metadata, PathInits inits) {

public QExternalCareer(Class<? extends ExternalCareer> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.category = inits.isInitialized("category") ? new QCategory(forProperty("category")) : null;
this.employee = inits.isInitialized("employee") ? new QAccount(forProperty("employee")) : null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@


/**
* QFlavored is a Querydsl query type for Flavored
* QFlavoredCategory is a Querydsl query type for FlavoredCategory
*/
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
public class QFlavored extends EntityPathBase<Flavored> {
public class QFlavoredCategory extends EntityPathBase<FlavoredCategory> {

private static final long serialVersionUID = 128299138L;
private static final long serialVersionUID = -258789472L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QFlavored flavored = new QFlavored("flavored");
public static final QFlavoredCategory flavoredCategory = new QFlavoredCategory("flavoredCategory");

public final QBaseEntity _super = new QBaseEntity(this);

Expand All @@ -31,30 +31,30 @@ public class QFlavored extends EntityPathBase<Flavored> {

public final QAccount employee;

public final NumberPath<Long> flavoredId = createNumber("flavoredId", Long.class);
public final NumberPath<Long> flavoredCategoryId = createNumber("flavoredCategoryId", Long.class);

//inherited
public final DateTimePath<java.time.LocalDateTime> updatedDate = _super.updatedDate;

public QFlavored(String variable) {
this(Flavored.class, forVariable(variable), INITS);
public QFlavoredCategory(String variable) {
this(FlavoredCategory.class, forVariable(variable), INITS);
}

public QFlavored(Path<? extends Flavored> path) {
public QFlavoredCategory(Path<? extends FlavoredCategory> path) {
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
}

public QFlavored(PathMetadata metadata) {
public QFlavoredCategory(PathMetadata metadata) {
this(metadata, PathInits.getFor(metadata, INITS));
}

public QFlavored(PathMetadata metadata, PathInits inits) {
this(Flavored.class, metadata, inits);
public QFlavoredCategory(PathMetadata metadata, PathInits inits) {
this(FlavoredCategory.class, metadata, inits);
}

public QFlavored(Class<? extends Flavored> type, PathMetadata metadata, PathInits inits) {
public QFlavoredCategory(Class<? extends FlavoredCategory> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.category = inits.isInitialized("category") ? new QCategory(forProperty("category"), inits.get("category")) : null;
this.category = inits.isInitialized("category") ? new QCategory(forProperty("category")) : null;
this.employee = inits.isInitialized("employee") ? new QAccount(forProperty("employee")) : null;
}

Expand Down
62 changes: 62 additions & 0 deletions src/main/generated/com/example/api/domain/QFlavoredDistrict.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package com.example.api.domain;

import static com.querydsl.core.types.PathMetadataFactory.*;

import com.querydsl.core.types.dsl.*;

import com.querydsl.core.types.PathMetadata;
import javax.annotation.processing.Generated;
import com.querydsl.core.types.Path;
import com.querydsl.core.types.dsl.PathInits;


/**
* QFlavoredDistrict is a Querydsl query type for FlavoredDistrict
*/
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
public class QFlavoredDistrict extends EntityPathBase<FlavoredDistrict> {

private static final long serialVersionUID = -20339152L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QFlavoredDistrict flavoredDistrict = new QFlavoredDistrict("flavoredDistrict");

public final QBaseEntity _super = new QBaseEntity(this);

//inherited
public final DateTimePath<java.time.LocalDateTime> createdDate = _super.createdDate;

public final QCityDistrict district;

public final QAccount employee;

public final NumberPath<Long> id = createNumber("id", Long.class);

//inherited
public final DateTimePath<java.time.LocalDateTime> updatedDate = _super.updatedDate;

public QFlavoredDistrict(String variable) {
this(FlavoredDistrict.class, forVariable(variable), INITS);
}

public QFlavoredDistrict(Path<? extends FlavoredDistrict> path) {
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS));
}

public QFlavoredDistrict(PathMetadata metadata) {
this(metadata, PathInits.getFor(metadata, INITS));
}

public QFlavoredDistrict(PathMetadata metadata, PathInits inits) {
this(FlavoredDistrict.class, metadata, inits);
}

public QFlavoredDistrict(Class<? extends FlavoredDistrict> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.district = inits.isInitialized("district") ? new QCityDistrict(forProperty("district")) : null;
this.employee = inits.isInitialized("employee") ? new QAccount(forProperty("employee")) : null;
}

}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.api.account.dto;

import com.example.api.account.entity.Location;
import com.example.api.business.domain.BusinessLocation;
import com.example.api.account.entity.Nationality;
import com.example.api.account.entity.UserRole;
import com.example.api.global.config.resolver.ValidEmail;
Expand All @@ -23,7 +23,7 @@ public record SignUpEmployerRequest(
@NotBlank
String businessOpenDate, // 개업연월일
@NotNull
Location location,
BusinessLocation location,
@NotNull
Nationality nationality, // 국적
@NotNull
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.example.api.account.entity;

import com.example.api.exception.BusinessException;
import com.example.api.exception.ErrorCode;
import com.example.api.global.exception.BusinessException;
import com.example.api.global.exception.ErrorCode;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

Expand Down
Loading
Loading