Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
src/main/generated/**

### STS ###
.apt_generated
Expand Down
17 changes: 12 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'
// QueryDsl
// id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build.gradle 주석은 사용하지 않는다면 제거 해도 될거같아용!

}

group = 'com.catcher'
Expand Down Expand Up @@ -57,14 +59,19 @@ dependencies {

//s3
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'

//QueryDsl
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
// implementation "com.querydsl:querydsl-jpa:5.0.0"
// implementation "com.querydsl:querydsl-apt:5.0.0"
// implementation "com.querydsl:querydsl-core:5.0.0"
}

dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}

tasks.named('test') {
useJUnitPlatform()
}
}
43 changes: 43 additions & 0 deletions src/main/generated/com/catcher/core/domain/entity/QAddress.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package com.catcher.core.domain.entity;

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;


/**
* QAddress is a Querydsl query type for Address
*/
@Generated("com.querydsl.codegen.DefaultEmbeddableSerializer")
public class QAddress extends BeanPath<Address> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이부분 Qxxx 클래스는 컴파일 시점에 생성되기 때문에, gitignore에(src/main/generated/**) 넣어놓고 사용했던거 같아요!
혹시, 제가 잘못알고 있다면 지적부탁드립니당

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저도 그렇게 알고 있긴합니다


private static final long serialVersionUID = 1419426487L;

public static final QAddress address = new QAddress("address");

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

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

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

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

public QAddress(String variable) {
super(Address.class, forVariable(variable));
}

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

public QAddress(PathMetadata metadata) {
super(Address.class, metadata);
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.catcher.core.domain.entity;

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;


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

private static final long serialVersionUID = -388254050L;

public static final QBaseTimeEntity baseTimeEntity = new QBaseTimeEntity("baseTimeEntity");

public final DateTimePath<java.time.ZonedDateTime> createdAt = createDateTime("createdAt", java.time.ZonedDateTime.class);

public final DateTimePath<java.time.ZonedDateTime> updatedAt = createDateTime("updatedAt", java.time.ZonedDateTime.class);

public QBaseTimeEntity(String variable) {
super(BaseTimeEntity.class, forVariable(variable));
}

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

public QBaseTimeEntity(PathMetadata metadata) {
super(BaseTimeEntity.class, metadata);
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
package com.catcher.core.domain.entity;

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;


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

private static final long serialVersionUID = -1062823650L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QCatcherItem catcherItem = new QCatcherItem("catcherItem");

public final QBaseTimeEntity _super = new QBaseTimeEntity(this);

public final QCategory category;

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

public final DateTimePath<java.time.ZonedDateTime> deletedAt = createDateTime("deletedAt", java.time.ZonedDateTime.class);

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

public final DateTimePath<java.time.ZonedDateTime> endAt = createDateTime("endAt", java.time.ZonedDateTime.class);

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

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

public final QLocation location;

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

public final DateTimePath<java.time.ZonedDateTime> startAt = createDateTime("startAt", java.time.ZonedDateTime.class);

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

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

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

public QCatcherItem(String variable) {
this(CatcherItem.class, forVariable(variable), INITS);
}

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

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

public QCatcherItem(PathMetadata metadata, PathInits inits) {
this(CatcherItem.class, metadata, inits);
}

public QCatcherItem(Class<? extends CatcherItem> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.category = inits.isInitialized("category") ? new QCategory(forProperty("category")) : null;
this.location = inits.isInitialized("location") ? new QLocation(forProperty("location"), inits.get("location")) : null;
}

}

39 changes: 39 additions & 0 deletions src/main/generated/com/catcher/core/domain/entity/QCategory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.catcher.core.domain.entity;

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;


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

private static final long serialVersionUID = -1973193061L;

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

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

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

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

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

public QCategory(PathMetadata metadata) {
super(Category.class, metadata);
}

}

51 changes: 51 additions & 0 deletions src/main/generated/com/catcher/core/domain/entity/QLocation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package com.catcher.core.domain.entity;

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;


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

private static final long serialVersionUID = -122660526L;

private static final PathInits INITS = PathInits.DIRECT2;

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

public final QAddress address;

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

public QLocation(String variable) {
this(Location.class, forVariable(variable), INITS);
}

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

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

public QLocation(PathMetadata metadata, PathInits inits) {
this(Location.class, metadata, inits);
}

public QLocation(Class<? extends Location> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.address = inits.isInitialized("address") ? new QAddress(forProperty("address")) : null;
}

}

87 changes: 87 additions & 0 deletions src/main/generated/com/catcher/core/domain/entity/QSchedule.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
package com.catcher.core.domain.entity;

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;


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

private static final long serialVersionUID = 1573342260L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QSchedule schedule = new QSchedule("schedule");

public final QBaseTimeEntity _super = new QBaseTimeEntity(this);

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

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

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

public final DateTimePath<java.time.ZonedDateTime> endAt = createDateTime("endAt", java.time.ZonedDateTime.class);

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

public final QLocation location;

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

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

public final DateTimePath<java.time.ZonedDateTime> participateEndAt = createDateTime("participateEndAt", java.time.ZonedDateTime.class);

public final DateTimePath<java.time.ZonedDateTime> participateStartAt = createDateTime("participateStartAt", java.time.ZonedDateTime.class);

public final DateTimePath<java.time.ZonedDateTime> startAt = createDateTime("startAt", java.time.ZonedDateTime.class);

public final EnumPath<com.catcher.core.domain.entity.enums.ScheduleStatus> status = createEnum("status", com.catcher.core.domain.entity.enums.ScheduleStatus.class);

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

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

public final QUploadFile uploadFile;

public final QUser user;

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

public QSchedule(String variable) {
this(Schedule.class, forVariable(variable), INITS);
}

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

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

public QSchedule(PathMetadata metadata, PathInits inits) {
this(Schedule.class, metadata, inits);
}

public QSchedule(Class<? extends Schedule> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.location = inits.isInitialized("location") ? new QLocation(forProperty("location"), inits.get("location")) : null;
this.uploadFile = inits.isInitialized("uploadFile") ? new QUploadFile(forProperty("uploadFile")) : null;
this.user = inits.isInitialized("user") ? new QUser(forProperty("user")) : null;
}

}

Loading