Skip to content

Commit

Permalink
feat: level에 colorNameEn 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Bellroute committed May 16, 2024
1 parent 3c8eabc commit cd2caed
Show file tree
Hide file tree
Showing 13 changed files with 409 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.climingo.climingoApi.gym.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;


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

private static final long serialVersionUID = -1383726286L;

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

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

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

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.climingo.climingoApi.gym.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;


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

private static final long serialVersionUID = -316096803L;

public static final QGeoInfo geoInfo = new QGeoInfo("geoInfo");

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

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

public QGeoInfo(String variable) {
super(GeoInfo.class, forVariable(variable));
}

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

public QGeoInfo(PathMetadata metadata) {
super(GeoInfo.class, metadata);
}

}

58 changes: 58 additions & 0 deletions src/main/generated/com/climingo/climingoApi/gym/domain/QGym.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package com.climingo.climingoApi.gym.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;


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

private static final long serialVersionUID = 693192697L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QGym gym = new QGym("gym");

public final QAddress address;

public final QGeoInfo geoInfo;

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

public final ListPath<com.climingo.climingoApi.level.domain.Level, com.climingo.climingoApi.level.domain.QLevel> levels = this.<com.climingo.climingoApi.level.domain.Level, com.climingo.climingoApi.level.domain.QLevel>createList("levels", com.climingo.climingoApi.level.domain.Level.class, com.climingo.climingoApi.level.domain.QLevel.class, PathInits.DIRECT2);

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

public QGym(String variable) {
this(Gym.class, forVariable(variable), INITS);
}

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

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

public QGym(PathMetadata metadata, PathInits inits) {
this(Gym.class, metadata, inits);
}

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

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
package com.climingo.climingoApi.level.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;


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

private static final long serialVersionUID = -69753383L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QLevel level = new QLevel("level");

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

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

public final com.climingo.climingoApi.gym.domain.QGym gym;

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

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

public QLevel(String variable) {
this(Level.class, forVariable(variable), INITS);
}

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

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

public QLevel(PathMetadata metadata, PathInits inits) {
this(Level.class, metadata, inits);
}

public QLevel(Class<? extends Level> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.gym = inits.isInitialized("gym") ? new com.climingo.climingoApi.gym.domain.QGym(forProperty("gym"), inits.get("gym")) : null;
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
package com.climingo.climingoApi.member.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 = 1574182789L;

private static final PathInits INITS = PathInits.DIRECT2;

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

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

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

public final com.climingo.climingoApi.gym.domain.QGym homeGym;

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

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

public final QPhysicalInfo physicalInfo;

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

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

public final ListPath<com.climingo.climingoApi.record.domain.Record, com.climingo.climingoApi.record.domain.QRecord> records = this.<com.climingo.climingoApi.record.domain.Record, com.climingo.climingoApi.record.domain.QRecord>createList("records", com.climingo.climingoApi.record.domain.Record.class, com.climingo.climingoApi.record.domain.QRecord.class, PathInits.DIRECT2);

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

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

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

public QMember(PathMetadata metadata, PathInits inits) {
this(Member.class, metadata, inits);
}

public QMember(Class<? extends Member> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.homeGym = inits.isInitialized("homeGym") ? new com.climingo.climingoApi.gym.domain.QGym(forProperty("homeGym"), inits.get("homeGym")) : null;
this.physicalInfo = inits.isInitialized("physicalInfo") ? new QPhysicalInfo(forProperty("physicalInfo")) : null;
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package com.climingo.climingoApi.member.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;


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

private static final long serialVersionUID = 1593798352L;

public static final QPhysicalInfo physicalInfo = new QPhysicalInfo("physicalInfo");

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

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

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

public QPhysicalInfo(String variable) {
super(PhysicalInfo.class, forVariable(variable));
}

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

public QPhysicalInfo(PathMetadata metadata) {
super(PhysicalInfo.class, metadata);
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
package com.climingo.climingoApi.record.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;


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

private static final long serialVersionUID = -505997645L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QRecord record = new QRecord("record");

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

public final com.climingo.climingoApi.gym.domain.QGym gym;

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

public final com.climingo.climingoApi.level.domain.QLevel level;

public final com.climingo.climingoApi.member.domain.QMember member;

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

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

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

public QRecord(String variable) {
this(Record.class, forVariable(variable), INITS);
}

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

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

public QRecord(PathMetadata metadata, PathInits inits) {
this(Record.class, metadata, inits);
}

public QRecord(Class<? extends Record> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.gym = inits.isInitialized("gym") ? new com.climingo.climingoApi.gym.domain.QGym(forProperty("gym"), inits.get("gym")) : null;
this.level = inits.isInitialized("level") ? new com.climingo.climingoApi.level.domain.QLevel(forProperty("level"), inits.get("level")) : null;
this.member = inits.isInitialized("member") ? new com.climingo.climingoApi.member.domain.QMember(forProperty("member"), inits.get("member")) : null;
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
public class LevelResponse {

private Long id;
private String colorName;
private String colorNameKo;
private String colorNameEn;

public LevelResponse(Long id, String colorName) {
public LevelResponse(Long id, String colorNameKo, String colorNameEn) {
this.id = id;
this.colorName = colorName;
this.colorNameKo = colorNameKo;
this.colorNameEn = colorNameEn;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public interface GymRepository extends JpaRepository<Gym, Long> {
@Query("select new com.climingo.climingoApi.gym.api.response.GymSearchResponse(g.id, g.address.address, g.address.zipCode, g.name) from Gym g where g.name like %:keyword%")
List<GymSearchResponse> search(@Param("keyword") String keyword);

@Query("select new com.climingo.climingoApi.gym.api.response.LevelResponse(gd.id, gd.colorName) from Level gd where gd.gym.id = :gymId")
@Query("select new com.climingo.climingoApi.gym.api.response.LevelResponse(gd.id, gd.colorNameKo, gd.colorNameEn) from Level gd where gd.gym.id = :gymId")
List<LevelResponse> findLevelsByGymId(@Param("gymId") Long gymId);

}
Loading

0 comments on commit cd2caed

Please sign in to comment.