From 3f6e1a8e2a72158e3577dc09af03c3428565e628 Mon Sep 17 00:00:00 2001 From: see101702 Date: Mon, 4 Dec 2023 17:39:16 +0900 Subject: [PATCH] refactor: popular --- .../server/api/chat/domain/QChatroom.java | 68 ++++++++++++++++ .../server/api/chat/domain/QEntrance.java | 62 +++++++++++++++ .../oven/server/api/chat/domain/QMessage.java | 64 +++++++++++++++ .../api/user/domain/QInterestingWork.java | 62 +++++++++++++++ .../server/api/user/domain/QRatingWork.java | 64 +++++++++++++++ .../oven/server/api/user/domain/QUser.java | 51 ++++++++++++ .../oven/server/api/work/domain/QGenre.java | 77 +++++++++++++++++++ .../server/api/work/domain/QProvider.java | 42 ++++++++++ .../oven/server/api/work/domain/QWork.java | 77 +++++++++++++++++++ .../server/api/work/domain/QWorkProvider.java | 62 +++++++++++++++ .../com/oven/server/common/QBaseEntity.java | 39 ++++++++++ .../api/work/controller/HomeController.java | 2 +- 12 files changed, 669 insertions(+), 1 deletion(-) create mode 100644 src/main/generated/com/oven/server/api/chat/domain/QChatroom.java create mode 100644 src/main/generated/com/oven/server/api/chat/domain/QEntrance.java create mode 100644 src/main/generated/com/oven/server/api/chat/domain/QMessage.java create mode 100644 src/main/generated/com/oven/server/api/user/domain/QInterestingWork.java create mode 100644 src/main/generated/com/oven/server/api/user/domain/QRatingWork.java create mode 100644 src/main/generated/com/oven/server/api/user/domain/QUser.java create mode 100644 src/main/generated/com/oven/server/api/work/domain/QGenre.java create mode 100644 src/main/generated/com/oven/server/api/work/domain/QProvider.java create mode 100644 src/main/generated/com/oven/server/api/work/domain/QWork.java create mode 100644 src/main/generated/com/oven/server/api/work/domain/QWorkProvider.java create mode 100644 src/main/generated/com/oven/server/common/QBaseEntity.java diff --git a/src/main/generated/com/oven/server/api/chat/domain/QChatroom.java b/src/main/generated/com/oven/server/api/chat/domain/QChatroom.java new file mode 100644 index 0000000..540ad40 --- /dev/null +++ b/src/main/generated/com/oven/server/api/chat/domain/QChatroom.java @@ -0,0 +1,68 @@ +package com.oven.server.api.chat.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; + + +/** + * QChatroom is a Querydsl query type for Chatroom + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QChatroom extends EntityPathBase { + + private static final long serialVersionUID = 599042677L; + + private static final PathInits INITS = PathInits.DIRECT2; + + public static final QChatroom chatroom = new QChatroom("chatroom"); + + public final com.oven.server.common.QBaseEntity _super = new com.oven.server.common.QBaseEntity(this); + + public final NumberPath count = createNumber("count", Integer.class); + + //inherited + public final DateTimePath createdAt = _super.createdAt; + + public final NumberPath id = createNumber("id", Long.class); + + //inherited + public final DateTimePath modifiedAt = _super.modifiedAt; + + public final com.oven.server.api.work.domain.QProvider provider; + + public final com.oven.server.api.user.domain.QUser roomAdmin; + + public final StringPath title = createString("title"); + + public final NumberPath wholeNum = createNumber("wholeNum", Integer.class); + + public QChatroom(String variable) { + this(Chatroom.class, forVariable(variable), INITS); + } + + public QChatroom(Path path) { + this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); + } + + public QChatroom(PathMetadata metadata) { + this(metadata, PathInits.getFor(metadata, INITS)); + } + + public QChatroom(PathMetadata metadata, PathInits inits) { + this(Chatroom.class, metadata, inits); + } + + public QChatroom(Class type, PathMetadata metadata, PathInits inits) { + super(type, metadata, inits); + this.provider = inits.isInitialized("provider") ? new com.oven.server.api.work.domain.QProvider(forProperty("provider")) : null; + this.roomAdmin = inits.isInitialized("roomAdmin") ? new com.oven.server.api.user.domain.QUser(forProperty("roomAdmin")) : null; + } + +} + diff --git a/src/main/generated/com/oven/server/api/chat/domain/QEntrance.java b/src/main/generated/com/oven/server/api/chat/domain/QEntrance.java new file mode 100644 index 0000000..c42414a --- /dev/null +++ b/src/main/generated/com/oven/server/api/chat/domain/QEntrance.java @@ -0,0 +1,62 @@ +package com.oven.server.api.chat.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; + + +/** + * QEntrance is a Querydsl query type for Entrance + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QEntrance extends EntityPathBase { + + private static final long serialVersionUID = 1361349880L; + + private static final PathInits INITS = PathInits.DIRECT2; + + public static final QEntrance entrance = new QEntrance("entrance"); + + public final com.oven.server.common.QBaseEntity _super = new com.oven.server.common.QBaseEntity(this); + + public final QChatroom chatroom; + + //inherited + public final DateTimePath createdAt = _super.createdAt; + + public final NumberPath id = createNumber("id", Long.class); + + //inherited + public final DateTimePath modifiedAt = _super.modifiedAt; + + public final com.oven.server.api.user.domain.QUser user; + + public QEntrance(String variable) { + this(Entrance.class, forVariable(variable), INITS); + } + + public QEntrance(Path path) { + this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); + } + + public QEntrance(PathMetadata metadata) { + this(metadata, PathInits.getFor(metadata, INITS)); + } + + public QEntrance(PathMetadata metadata, PathInits inits) { + this(Entrance.class, metadata, inits); + } + + public QEntrance(Class type, PathMetadata metadata, PathInits inits) { + super(type, metadata, inits); + this.chatroom = inits.isInitialized("chatroom") ? new QChatroom(forProperty("chatroom"), inits.get("chatroom")) : null; + this.user = inits.isInitialized("user") ? new com.oven.server.api.user.domain.QUser(forProperty("user")) : null; + } + +} + diff --git a/src/main/generated/com/oven/server/api/chat/domain/QMessage.java b/src/main/generated/com/oven/server/api/chat/domain/QMessage.java new file mode 100644 index 0000000..f7e9ad0 --- /dev/null +++ b/src/main/generated/com/oven/server/api/chat/domain/QMessage.java @@ -0,0 +1,64 @@ +package com.oven.server.api.chat.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; + + +/** + * QMessage is a Querydsl query type for Message + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QMessage extends EntityPathBase { + + private static final long serialVersionUID = -1704546939L; + + private static final PathInits INITS = PathInits.DIRECT2; + + public static final QMessage message = new QMessage("message"); + + public final com.oven.server.common.QBaseEntity _super = new com.oven.server.common.QBaseEntity(this); + + public final QChatroom chatroom; + + public final StringPath content = createString("content"); + + //inherited + public final DateTimePath createdAt = _super.createdAt; + + public final NumberPath id = createNumber("id", Long.class); + + //inherited + public final DateTimePath modifiedAt = _super.modifiedAt; + + public final com.oven.server.api.user.domain.QUser sender; + + public QMessage(String variable) { + this(Message.class, forVariable(variable), INITS); + } + + public QMessage(Path path) { + this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); + } + + public QMessage(PathMetadata metadata) { + this(metadata, PathInits.getFor(metadata, INITS)); + } + + public QMessage(PathMetadata metadata, PathInits inits) { + this(Message.class, metadata, inits); + } + + public QMessage(Class type, PathMetadata metadata, PathInits inits) { + super(type, metadata, inits); + this.chatroom = inits.isInitialized("chatroom") ? new QChatroom(forProperty("chatroom"), inits.get("chatroom")) : null; + this.sender = inits.isInitialized("sender") ? new com.oven.server.api.user.domain.QUser(forProperty("sender")) : null; + } + +} + diff --git a/src/main/generated/com/oven/server/api/user/domain/QInterestingWork.java b/src/main/generated/com/oven/server/api/user/domain/QInterestingWork.java new file mode 100644 index 0000000..0097eb9 --- /dev/null +++ b/src/main/generated/com/oven/server/api/user/domain/QInterestingWork.java @@ -0,0 +1,62 @@ +package com.oven.server.api.user.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; + + +/** + * QInterestingWork is a Querydsl query type for InterestingWork + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QInterestingWork extends EntityPathBase { + + private static final long serialVersionUID = -129692332L; + + private static final PathInits INITS = PathInits.DIRECT2; + + public static final QInterestingWork interestingWork = new QInterestingWork("interestingWork"); + + public final com.oven.server.common.QBaseEntity _super = new com.oven.server.common.QBaseEntity(this); + + //inherited + public final DateTimePath createdAt = _super.createdAt; + + public final NumberPath id = createNumber("id", Long.class); + + //inherited + public final DateTimePath modifiedAt = _super.modifiedAt; + + public final QUser user; + + public final com.oven.server.api.work.domain.QWork work; + + public QInterestingWork(String variable) { + this(InterestingWork.class, forVariable(variable), INITS); + } + + public QInterestingWork(Path path) { + this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); + } + + public QInterestingWork(PathMetadata metadata) { + this(metadata, PathInits.getFor(metadata, INITS)); + } + + public QInterestingWork(PathMetadata metadata, PathInits inits) { + this(InterestingWork.class, metadata, inits); + } + + public QInterestingWork(Class type, PathMetadata metadata, PathInits inits) { + super(type, metadata, inits); + this.user = inits.isInitialized("user") ? new QUser(forProperty("user")) : null; + this.work = inits.isInitialized("work") ? new com.oven.server.api.work.domain.QWork(forProperty("work"), inits.get("work")) : null; + } + +} + diff --git a/src/main/generated/com/oven/server/api/user/domain/QRatingWork.java b/src/main/generated/com/oven/server/api/user/domain/QRatingWork.java new file mode 100644 index 0000000..0ab5407 --- /dev/null +++ b/src/main/generated/com/oven/server/api/user/domain/QRatingWork.java @@ -0,0 +1,64 @@ +package com.oven.server.api.user.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; + + +/** + * QRatingWork is a Querydsl query type for RatingWork + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QRatingWork extends EntityPathBase { + + private static final long serialVersionUID = -1219391037L; + + private static final PathInits INITS = PathInits.DIRECT2; + + public static final QRatingWork ratingWork = new QRatingWork("ratingWork"); + + public final com.oven.server.common.QBaseEntity _super = new com.oven.server.common.QBaseEntity(this); + + //inherited + public final DateTimePath createdAt = _super.createdAt; + + public final NumberPath id = createNumber("id", Long.class); + + //inherited + public final DateTimePath modifiedAt = _super.modifiedAt; + + public final NumberPath rating = createNumber("rating", Float.class); + + public final QUser user; + + public final com.oven.server.api.work.domain.QWork work; + + public QRatingWork(String variable) { + this(RatingWork.class, forVariable(variable), INITS); + } + + public QRatingWork(Path path) { + this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); + } + + public QRatingWork(PathMetadata metadata) { + this(metadata, PathInits.getFor(metadata, INITS)); + } + + public QRatingWork(PathMetadata metadata, PathInits inits) { + this(RatingWork.class, metadata, inits); + } + + public QRatingWork(Class type, PathMetadata metadata, PathInits inits) { + super(type, metadata, inits); + this.user = inits.isInitialized("user") ? new QUser(forProperty("user")) : null; + this.work = inits.isInitialized("work") ? new com.oven.server.api.work.domain.QWork(forProperty("work"), inits.get("work")) : null; + } + +} + diff --git a/src/main/generated/com/oven/server/api/user/domain/QUser.java b/src/main/generated/com/oven/server/api/user/domain/QUser.java new file mode 100644 index 0000000..985e6f7 --- /dev/null +++ b/src/main/generated/com/oven/server/api/user/domain/QUser.java @@ -0,0 +1,51 @@ +package com.oven.server.api.user.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; + + +/** + * QUser is a Querydsl query type for User + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QUser extends EntityPathBase { + + private static final long serialVersionUID = 631284480L; + + public static final QUser user = new QUser("user"); + + public final com.oven.server.common.QBaseEntity _super = new com.oven.server.common.QBaseEntity(this); + + //inherited + public final DateTimePath createdAt = _super.createdAt; + + public final NumberPath id = createNumber("id", Long.class); + + //inherited + public final DateTimePath modifiedAt = _super.modifiedAt; + + public final StringPath nickname = createString("nickname"); + + public final StringPath password = createString("password"); + + public final StringPath username = createString("username"); + + public QUser(String variable) { + super(User.class, forVariable(variable)); + } + + public QUser(Path path) { + super(path.getType(), path.getMetadata()); + } + + public QUser(PathMetadata metadata) { + super(User.class, metadata); + } + +} + diff --git a/src/main/generated/com/oven/server/api/work/domain/QGenre.java b/src/main/generated/com/oven/server/api/work/domain/QGenre.java new file mode 100644 index 0000000..dbfad21 --- /dev/null +++ b/src/main/generated/com/oven/server/api/work/domain/QGenre.java @@ -0,0 +1,77 @@ +package com.oven.server.api.work.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; + + +/** + * QGenre is a Querydsl query type for Genre + */ +@Generated("com.querydsl.codegen.DefaultEmbeddableSerializer") +public class QGenre extends BeanPath { + + private static final long serialVersionUID = 197681000L; + + public static final QGenre genre = new QGenre("genre"); + + public final BooleanPath action = createBoolean("action"); + + public final BooleanPath adult = createBoolean("adult"); + + public final BooleanPath adventure = createBoolean("adventure"); + + public final BooleanPath animation = createBoolean("animation"); + + public final BooleanPath comedy = createBoolean("comedy"); + + public final BooleanPath criminal = createBoolean("criminal"); + + public final BooleanPath documentary = createBoolean("documentary"); + + public final BooleanPath drama = createBoolean("drama"); + + public final BooleanPath family = createBoolean("family"); + + public final BooleanPath fantasy = createBoolean("fantasy"); + + public final BooleanPath horror = createBoolean("horror"); + + public final BooleanPath music = createBoolean("music"); + + public final BooleanPath musical = createBoolean("musical"); + + public final BooleanPath mystery = createBoolean("mystery"); + + public final BooleanPath performance = createBoolean("performance"); + + public final BooleanPath romance = createBoolean("romance"); + + public final BooleanPath SF = createBoolean("SF"); + + public final BooleanPath thriller = createBoolean("thriller"); + + public final BooleanPath variety = createBoolean("variety"); + + public final BooleanPath war = createBoolean("war"); + + public final BooleanPath western = createBoolean("western"); + + public QGenre(String variable) { + super(Genre.class, forVariable(variable)); + } + + public QGenre(Path path) { + super(path.getType(), path.getMetadata()); + } + + public QGenre(PathMetadata metadata) { + super(Genre.class, metadata); + } + +} + diff --git a/src/main/generated/com/oven/server/api/work/domain/QProvider.java b/src/main/generated/com/oven/server/api/work/domain/QProvider.java new file mode 100644 index 0000000..4551345 --- /dev/null +++ b/src/main/generated/com/oven/server/api/work/domain/QProvider.java @@ -0,0 +1,42 @@ +package com.oven.server.api.work.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; + + +/** + * QProvider is a Querydsl query type for Provider + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QProvider extends EntityPathBase { + + private static final long serialVersionUID = -2094880276L; + + public static final QProvider provider = new QProvider("provider"); + + public final NumberPath id = createNumber("id", Long.class); + + public final StringPath name = createString("name"); + + public final ListPath workList = this.createList("workList", WorkProvider.class, QWorkProvider.class, PathInits.DIRECT2); + + public QProvider(String variable) { + super(Provider.class, forVariable(variable)); + } + + public QProvider(Path path) { + super(path.getType(), path.getMetadata()); + } + + public QProvider(PathMetadata metadata) { + super(Provider.class, metadata); + } + +} + diff --git a/src/main/generated/com/oven/server/api/work/domain/QWork.java b/src/main/generated/com/oven/server/api/work/domain/QWork.java new file mode 100644 index 0000000..71194ea --- /dev/null +++ b/src/main/generated/com/oven/server/api/work/domain/QWork.java @@ -0,0 +1,77 @@ +package com.oven.server.api.work.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; + + +/** + * QWork is a Querydsl query type for Work + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QWork extends EntityPathBase { + + private static final long serialVersionUID = 1946525836L; + + private static final PathInits INITS = PathInits.DIRECT2; + + public static final QWork work = new QWork("work"); + + public final com.oven.server.common.QBaseEntity _super = new com.oven.server.common.QBaseEntity(this); + + public final StringPath actor = createString("actor"); + + public final StringPath ageRating = createString("ageRating"); + + //inherited + public final DateTimePath createdAt = _super.createdAt; + + public final StringPath director = createString("director"); + + public final QGenre genre; + + public final NumberPath id = createNumber("id", Long.class); + + //inherited + public final DateTimePath modifiedAt = _super.modifiedAt; + + public final StringPath poster = createString("poster"); + + public final ListPath providerList = this.createList("providerList", WorkProvider.class, QWorkProvider.class, PathInits.DIRECT2); + + public final StringPath summary = createString("summary"); + + public final StringPath titleEng = createString("titleEng"); + + public final StringPath titleKr = createString("titleKr"); + + public final NumberPath year = createNumber("year", Integer.class); + + public QWork(String variable) { + this(Work.class, forVariable(variable), INITS); + } + + public QWork(Path path) { + this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); + } + + public QWork(PathMetadata metadata) { + this(metadata, PathInits.getFor(metadata, INITS)); + } + + public QWork(PathMetadata metadata, PathInits inits) { + this(Work.class, metadata, inits); + } + + public QWork(Class type, PathMetadata metadata, PathInits inits) { + super(type, metadata, inits); + this.genre = inits.isInitialized("genre") ? new QGenre(forProperty("genre")) : null; + } + +} + diff --git a/src/main/generated/com/oven/server/api/work/domain/QWorkProvider.java b/src/main/generated/com/oven/server/api/work/domain/QWorkProvider.java new file mode 100644 index 0000000..d5c3035 --- /dev/null +++ b/src/main/generated/com/oven/server/api/work/domain/QWorkProvider.java @@ -0,0 +1,62 @@ +package com.oven.server.api.work.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; + + +/** + * QWorkProvider is a Querydsl query type for WorkProvider + */ +@Generated("com.querydsl.codegen.DefaultEntitySerializer") +public class QWorkProvider extends EntityPathBase { + + private static final long serialVersionUID = 1120976541L; + + private static final PathInits INITS = PathInits.DIRECT2; + + public static final QWorkProvider workProvider = new QWorkProvider("workProvider"); + + public final com.oven.server.common.QBaseEntity _super = new com.oven.server.common.QBaseEntity(this); + + //inherited + public final DateTimePath createdAt = _super.createdAt; + + public final NumberPath id = createNumber("id", Long.class); + + //inherited + public final DateTimePath modifiedAt = _super.modifiedAt; + + public final QProvider provider; + + public final QWork work; + + public QWorkProvider(String variable) { + this(WorkProvider.class, forVariable(variable), INITS); + } + + public QWorkProvider(Path path) { + this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); + } + + public QWorkProvider(PathMetadata metadata) { + this(metadata, PathInits.getFor(metadata, INITS)); + } + + public QWorkProvider(PathMetadata metadata, PathInits inits) { + this(WorkProvider.class, metadata, inits); + } + + public QWorkProvider(Class type, PathMetadata metadata, PathInits inits) { + super(type, metadata, inits); + this.provider = inits.isInitialized("provider") ? new QProvider(forProperty("provider")) : null; + this.work = inits.isInitialized("work") ? new QWork(forProperty("work"), inits.get("work")) : null; + } + +} + diff --git a/src/main/generated/com/oven/server/common/QBaseEntity.java b/src/main/generated/com/oven/server/common/QBaseEntity.java new file mode 100644 index 0000000..7326ef8 --- /dev/null +++ b/src/main/generated/com/oven/server/common/QBaseEntity.java @@ -0,0 +1,39 @@ +package com.oven.server.common; + +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; + + +/** + * QBaseEntity is a Querydsl query type for BaseEntity + */ +@Generated("com.querydsl.codegen.DefaultSupertypeSerializer") +public class QBaseEntity extends EntityPathBase { + + private static final long serialVersionUID = 1638760413L; + + public static final QBaseEntity baseEntity = new QBaseEntity("baseEntity"); + + public final DateTimePath createdAt = createDateTime("createdAt", java.time.LocalDateTime.class); + + public final DateTimePath modifiedAt = createDateTime("modifiedAt", java.time.LocalDateTime.class); + + public QBaseEntity(String variable) { + super(BaseEntity.class, forVariable(variable)); + } + + public QBaseEntity(Path path) { + super(path.getType(), path.getMetadata()); + } + + public QBaseEntity(PathMetadata metadata) { + super(BaseEntity.class, metadata); + } + +} + diff --git a/src/main/java/com/oven/server/api/work/controller/HomeController.java b/src/main/java/com/oven/server/api/work/controller/HomeController.java index 99defcb..17ee2c7 100644 --- a/src/main/java/com/oven/server/api/work/controller/HomeController.java +++ b/src/main/java/com/oven/server/api/work/controller/HomeController.java @@ -44,7 +44,7 @@ public Response getRecommendProvider(@AuthenticationPrincipal public Response> getPopularWorkList() { List popularWorkDtoList = getPopularWorkListService.getPopularWorkList(); - return Response.success(ResponseCode.SUCCESS_OK, popularWorkDtoList); + return Response.success(ResponseCode.SUCCESS_OK, popularWorkDtoList.subList(0, 1)); }