Skip to content

Commit

Permalink
✨practice(#6) : write QueryDSL query
Browse files Browse the repository at this point in the history
  • Loading branch information
2ghrms committed Nov 7, 2024
1 parent 71c1b50 commit e172bf6
Show file tree
Hide file tree
Showing 20 changed files with 793 additions and 1 deletion.
52 changes: 52 additions & 0 deletions spring/src/main/generated/umc/spring/domain/QFood.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package umc.spring.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;


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

private static final long serialVersionUID = -1348495606L;

public static final QFood food = new QFood("food");

public final umc.spring.domain.common.QBaseEntity _super = new umc.spring.domain.common.QBaseEntity(this);

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

public final EnumPath<umc.spring.domain.enums.FoodCategory> foodCategory = createEnum("foodCategory", umc.spring.domain.enums.FoodCategory.class);

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

public final ListPath<umc.spring.domain.mapping.MemberPreferFood, umc.spring.domain.mapping.QMemberPreferFood> memberPreferFoodList = this.<umc.spring.domain.mapping.MemberPreferFood, umc.spring.domain.mapping.QMemberPreferFood>createList("memberPreferFoodList", umc.spring.domain.mapping.MemberPreferFood.class, umc.spring.domain.mapping.QMemberPreferFood.class, PathInits.DIRECT2);

public final BooleanPath preferOptional = createBoolean("preferOptional");

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

public QFood(String variable) {
super(Food.class, forVariable(variable));
}

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

public QFood(PathMetadata metadata) {
super(Food.class, metadata);
}

}

74 changes: 74 additions & 0 deletions spring/src/main/generated/umc/spring/domain/QMember.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
package umc.spring.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;


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

private static final long serialVersionUID = 1366956614L;

public static final QMember member = new QMember("member1");

public final umc.spring.domain.common.QBaseEntity _super = new umc.spring.domain.common.QBaseEntity(this);

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

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

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

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

public final EnumPath<umc.spring.domain.enums.Gender> gender = createEnum("gender", umc.spring.domain.enums.Gender.class);

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

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

public final ListPath<umc.spring.domain.mapping.MemberAgreeTerm, umc.spring.domain.mapping.QMemberAgreeTerm> memberAgreeTermList = this.<umc.spring.domain.mapping.MemberAgreeTerm, umc.spring.domain.mapping.QMemberAgreeTerm>createList("memberAgreeTermList", umc.spring.domain.mapping.MemberAgreeTerm.class, umc.spring.domain.mapping.QMemberAgreeTerm.class, PathInits.DIRECT2);

public final ListPath<umc.spring.domain.mapping.MemberMission, umc.spring.domain.mapping.QMemberMission> memberMissionList = this.<umc.spring.domain.mapping.MemberMission, umc.spring.domain.mapping.QMemberMission>createList("memberMissionList", umc.spring.domain.mapping.MemberMission.class, umc.spring.domain.mapping.QMemberMission.class, PathInits.DIRECT2);

public final ListPath<umc.spring.domain.mapping.MemberPreferFood, umc.spring.domain.mapping.QMemberPreferFood> memberPreferFoodList = this.<umc.spring.domain.mapping.MemberPreferFood, umc.spring.domain.mapping.QMemberPreferFood>createList("memberPreferFoodList", umc.spring.domain.mapping.MemberPreferFood.class, umc.spring.domain.mapping.QMemberPreferFood.class, PathInits.DIRECT2);

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

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

public final ListPath<Review, QReview> reviewList = this.<Review, QReview>createList("reviewList", Review.class, QReview.class, PathInits.DIRECT2);

public final EnumPath<umc.spring.domain.enums.SocialType> socialtype = createEnum("socialtype", umc.spring.domain.enums.SocialType.class);

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

public final EnumPath<umc.spring.domain.enums.MemberStatus> status = createEnum("status", umc.spring.domain.enums.MemberStatus.class);

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

public QMember(String variable) {
super(Member.class, forVariable(variable));
}

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

public QMember(PathMetadata metadata) {
super(Member.class, metadata);
}

}

67 changes: 67 additions & 0 deletions spring/src/main/generated/umc/spring/domain/QMission.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package umc.spring.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;


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

private static final long serialVersionUID = -453449888L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QMission mission = new QMission("mission");

public final umc.spring.domain.common.QBaseEntity _super = new umc.spring.domain.common.QBaseEntity(this);

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

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

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

public final ListPath<umc.spring.domain.mapping.MemberMission, umc.spring.domain.mapping.QMemberMission> memberMissionList = this.<umc.spring.domain.mapping.MemberMission, umc.spring.domain.mapping.QMemberMission>createList("memberMissionList", umc.spring.domain.mapping.MemberMission.class, umc.spring.domain.mapping.QMemberMission.class, PathInits.DIRECT2);

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

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

public final QStore store;

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

public QMission(String variable) {
this(Mission.class, forVariable(variable), INITS);
}

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

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

public QMission(PathMetadata metadata, PathInits inits) {
this(Mission.class, metadata, inits);
}

public QMission(Class<? extends Mission> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.store = inits.isInitialized("store") ? new QStore(forProperty("store"), inits.get("store")) : null;
}

}

50 changes: 50 additions & 0 deletions spring/src/main/generated/umc/spring/domain/QRegion.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package umc.spring.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;


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

private static final long serialVersionUID = 1509930656L;

public static final QRegion region = new QRegion("region");

public final umc.spring.domain.common.QBaseEntity _super = new umc.spring.domain.common.QBaseEntity(this);

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

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

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

public final ListPath<Store, QStore> StoreList = this.<Store, QStore>createList("StoreList", Store.class, QStore.class, PathInits.DIRECT2);

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

public QRegion(String variable) {
super(Region.class, forVariable(variable));
}

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

public QRegion(PathMetadata metadata) {
super(Region.class, metadata);
}

}

66 changes: 66 additions & 0 deletions spring/src/main/generated/umc/spring/domain/QReview.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
package umc.spring.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;


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

private static final long serialVersionUID = 1510377220L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QReview review = new QReview("review");

public final umc.spring.domain.common.QBaseEntity _super = new umc.spring.domain.common.QBaseEntity(this);

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

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

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

public final QMember member;

public final NumberPath<Float> rating = createNumber("rating", Float.class);

public final QStore store;

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

public QReview(String variable) {
this(Review.class, forVariable(variable), INITS);
}

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

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

public QReview(PathMetadata metadata, PathInits inits) {
this(Review.class, metadata, inits);
}

public QReview(Class<? extends Review> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.member = inits.isInitialized("member") ? new QMember(forProperty("member")) : null;
this.store = inits.isInitialized("store") ? new QStore(forProperty("store"), inits.get("store")) : null;
}

}

71 changes: 71 additions & 0 deletions spring/src/main/generated/umc/spring/domain/QStore.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
package umc.spring.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;


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

private static final long serialVersionUID = 1158464437L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QStore store = new QStore("store");

public final umc.spring.domain.common.QBaseEntity _super = new umc.spring.domain.common.QBaseEntity(this);

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

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

public final EnumPath<umc.spring.domain.enums.FoodCategory> foodCategory = createEnum("foodCategory", umc.spring.domain.enums.FoodCategory.class);

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

public final ListPath<Mission, QMission> missionList = this.<Mission, QMission>createList("missionList", Mission.class, QMission.class, PathInits.DIRECT2);

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

public final QRegion region;

public final ListPath<Review, QReview> reviewList = this.<Review, QReview>createList("reviewList", Review.class, QReview.class, PathInits.DIRECT2);

public final NumberPath<Float> score = createNumber("score", Float.class);

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

public QStore(String variable) {
this(Store.class, forVariable(variable), INITS);
}

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

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

public QStore(PathMetadata metadata, PathInits inits) {
this(Store.class, metadata, inits);
}

public QStore(Class<? extends Store> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.region = inits.isInitialized("region") ? new QRegion(forProperty("region")) : null;
}

}

Loading

0 comments on commit e172bf6

Please sign in to comment.