Skip to content

Commit

Permalink
Merge pull request #33 from ese111/feature_28
Browse files Browse the repository at this point in the history
Feature 28
  • Loading branch information
KTH-96 committed Jun 2, 2022
2 parents e4d46f2 + 8e0e3b8 commit 0039bd0
Show file tree
Hide file tree
Showing 29 changed files with 772 additions and 59 deletions.
1 change: 1 addition & 0 deletions BE/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build/
!**/src/main/**/build/
!**/src/test/**/build/
.DS_Store
src/main/generated

### STS ###
.apt_generated
Expand Down
12 changes: 12 additions & 0 deletions BE/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {
id 'java'
}

ext["hibernate.version"] = "5.6.5.Final"

group = 'yanse'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
Expand All @@ -29,9 +31,19 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok'
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.0'

//Querydsl 추가
implementation 'com.querydsl:querydsl-jpa'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jpa"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"

testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

tasks.named('test') {
useJUnitPlatform()
}

clean {
delete file('src/main/generated')
}
45 changes: 45 additions & 0 deletions BE/src/main/generated/yanse/airbnb/domain/image/QImage.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package yanse.airbnb.domain.image;

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;


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

private static final long serialVersionUID = -1502448982L;

public static final QImage image = new QImage("image");

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

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

public final EnumPath<yanse.airbnb.type.ImageType> imageType = createEnum("imageType", yanse.airbnb.type.ImageType.class);

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

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

public QImage(String variable) {
super(Image.class, forVariable(variable));
}

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

public QImage(PathMetadata metadata) {
super(Image.class, metadata);
}

}

53 changes: 53 additions & 0 deletions BE/src/main/generated/yanse/airbnb/domain/image/QRoomImage.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package yanse.airbnb.domain.image;

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;


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

private static final long serialVersionUID = 1626084111L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QRoomImage roomImage = new QRoomImage("roomImage");

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

public final yanse.airbnb.domain.room.QRoom room;

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

public QRoomImage(String variable) {
this(RoomImage.class, forVariable(variable), INITS);
}

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

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

public QRoomImage(PathMetadata metadata, PathInits inits) {
this(RoomImage.class, metadata, inits);
}

public QRoomImage(Class<? extends RoomImage> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.room = inits.isInitialized("room") ? new yanse.airbnb.domain.room.QRoom(forProperty("room"), inits.get("room")) : null;
}

}

48 changes: 48 additions & 0 deletions BE/src/main/generated/yanse/airbnb/domain/member/QMembers.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package yanse.airbnb.domain.member;

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;


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

private static final long serialVersionUID = -8962397L;

public static final QMembers members = new QMembers("members");

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

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

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

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

public final ListPath<yanse.airbnb.domain.reservation.Reservation, yanse.airbnb.domain.reservation.QReservation> reservationList = this.<yanse.airbnb.domain.reservation.Reservation, yanse.airbnb.domain.reservation.QReservation>createList("reservationList", yanse.airbnb.domain.reservation.Reservation.class, yanse.airbnb.domain.reservation.QReservation.class, PathInits.DIRECT2);

public final ListPath<yanse.airbnb.domain.wish.Wish, yanse.airbnb.domain.wish.QWish> wishList = this.<yanse.airbnb.domain.wish.Wish, yanse.airbnb.domain.wish.QWish>createList("wishList", yanse.airbnb.domain.wish.Wish.class, yanse.airbnb.domain.wish.QWish.class, PathInits.DIRECT2);

public QMembers(String variable) {
super(Members.class, forVariable(variable));
}

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

public QMembers(PathMetadata metadata) {
super(Members.class, metadata);
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package yanse.airbnb.domain.reservation;

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;


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

private static final long serialVersionUID = -1869234443L;

public static final QDetailFee detailFee = new QDetailFee("detailFee");

public final NumberPath<Double> cleaningFee = createNumber("cleaningFee", Double.class);

public final EnumPath<yanse.airbnb.type.DiscountPolicy> discountPolicy = createEnum("discountPolicy", yanse.airbnb.type.DiscountPolicy.class);

public final NumberPath<Double> roomTax = createNumber("roomTax", Double.class);

public final NumberPath<Double> serviceTax = createNumber("serviceTax", Double.class);

public QDetailFee(String variable) {
super(DetailFee.class, forVariable(variable));
}

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

public QDetailFee(PathMetadata metadata) {
super(DetailFee.class, metadata);
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
package yanse.airbnb.domain.reservation;

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;


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

private static final long serialVersionUID = -527444660L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QReservation reservation = new QReservation("reservation");

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

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

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

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

public final QDetailFee detailFee;

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

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

public final yanse.airbnb.domain.member.QMembers members;

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

public final yanse.airbnb.domain.room.QRoom room;

public QReservation(String variable) {
this(Reservation.class, forVariable(variable), INITS);
}

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

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

public QReservation(PathMetadata metadata, PathInits inits) {
this(Reservation.class, metadata, inits);
}

public QReservation(Class<? extends Reservation> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.detailFee = inits.isInitialized("detailFee") ? new QDetailFee(forProperty("detailFee")) : null;
this.members = inits.isInitialized("members") ? new yanse.airbnb.domain.member.QMembers(forProperty("members")) : null;
this.room = inits.isInitialized("room") ? new yanse.airbnb.domain.room.QRoom(forProperty("room"), inits.get("room")) : null;
}

}

43 changes: 43 additions & 0 deletions BE/src/main/generated/yanse/airbnb/domain/room/QAddress.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package yanse.airbnb.domain.room;

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> {

private static final long serialVersionUID = 903110207L;

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

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

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

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

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

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);
}

}

Loading

0 comments on commit 0039bd0

Please sign in to comment.