Skip to content

Commit

Permalink
Merge pull request #16 from 28th-meetup/feat/store
Browse files Browse the repository at this point in the history
[Feat/store] 가게 관련 기능 추가
  • Loading branch information
eckrin authored Nov 9, 2023
2 parents 8c3c36d + d3be14b commit 918bea5
Show file tree
Hide file tree
Showing 52 changed files with 1,244 additions and 45 deletions.
Binary file added .DS_Store
Binary file not shown.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/✅-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "✅ FEATURE"
about: 기능구현 시 작성해주세요
title: "[FEAT]"
labels: enhancement
assignees: ''

---

## ✏️ Description
설명을 작성하세요.

## 📝 ToDo
- [ ] todo
- [ ] todo

## ETC

**Additional context**
Add any other context or screenshots about the feature request here.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ out/

### JRebel ###
rebel.xml

### .DS_Store ###
.DS_Store
29 changes: 29 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
//buildscript {
// ext {
// queryDslVersion = "5.0.0"
// }
//}

plugins {
id 'java'
id 'org.springframework.boot' version '3.1.3'
id 'io.spring.dependency-management' version '1.1.3'
// id "com.ewerk.gradle.plugins.querydsl" version "1.0.10" //QueryDsl
}

group = 'com.kusitms'
Expand All @@ -19,6 +26,7 @@ configurations {
compileOnly {
extendsFrom annotationProcessor
}
// querydsl.extendsFrom compileClasspath
}

repositories {
Expand Down Expand Up @@ -53,9 +61,30 @@ dependencies {
//lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
//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"

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

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

//def querydslDir = "$buildDir/generated/querydsl"
//
//querydsl {
// jpa = true
// querydslSourcesDir = querydslDir
//}
//
//sourceSets {
// main.java.srcDir querydslDir
//}
//
//compileQuerydsl{
// options.annotationProcessorPath = configurations.querydsl
//}
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/main/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package com.kusitms.jipbap.chat.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;


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

private static final long serialVersionUID = -928480451L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QMessage message1 = new QMessage("message1");

public final com.kusitms.jipbap.common.entity.QDateEntity _super = new com.kusitms.jipbap.common.entity.QDateEntity(this);

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

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

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

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

public final QRoom room;

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

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

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

public QMessage(String variable) {
this(Message.class, forVariable(variable), INITS);
}

public QMessage(Path<? extends Message> 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<? extends Message> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.room = inits.isInitialized("room") ? new QRoom(forProperty("room"), inits.get("room")) : null;
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
package com.kusitms.jipbap.chat.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;


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

private static final long serialVersionUID = 1449900389L;

private static final PathInits INITS = PathInits.DIRECT2;

public static final QRoom room = new QRoom("room");

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

public final ListPath<Message, QMessage> messageList = this.<Message, QMessage>createList("messageList", Message.class, QMessage.class, PathInits.DIRECT2);

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

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

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

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

public final com.kusitms.jipbap.store.QStore store;

public final com.kusitms.jipbap.user.QUser user;

public QRoom(String variable) {
this(Room.class, forVariable(variable), INITS);
}

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

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

public QRoom(PathMetadata metadata, PathInits inits) {
this(Room.class, metadata, inits);
}

public QRoom(Class<? extends Room> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.store = inits.isInitialized("store") ? new com.kusitms.jipbap.store.QStore(forProperty("store"), inits.get("store")) : null;
this.user = inits.isInitialized("user") ? new com.kusitms.jipbap.user.QUser(forProperty("user")) : null;
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.kusitms.jipbap.common.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;


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

private static final long serialVersionUID = -170761146L;

public static final QDateEntity dateEntity = new QDateEntity("dateEntity");

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

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

public QDateEntity(String variable) {
super(DateEntity.class, forVariable(variable));
}

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

public QDateEntity(PathMetadata metadata) {
super(DateEntity.class, metadata);
}

}

49 changes: 49 additions & 0 deletions src/main/generated/com/kusitms/jipbap/food/QCategory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package com.kusitms.jipbap.food;

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 = 1489953153L;

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

public final com.kusitms.jipbap.common.entity.QDateEntity _super = new com.kusitms.jipbap.common.entity.QDateEntity(this);

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

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

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

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

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

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

}

70 changes: 70 additions & 0 deletions src/main/generated/com/kusitms/jipbap/food/QFood.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package com.kusitms.jipbap.food;

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 = -1116673439L;

private static final PathInits INITS = PathInits.DIRECT2;

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

public final com.kusitms.jipbap.common.entity.QDateEntity _super = new com.kusitms.jipbap.common.entity.QDateEntity(this);

public final QCategory category;

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

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

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

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

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

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

public final com.kusitms.jipbap.store.QStore store;

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

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

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

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

public QFood(PathMetadata metadata, PathInits inits) {
this(Food.class, metadata, inits);
}

public QFood(Class<? extends Food> type, PathMetadata metadata, PathInits inits) {
super(type, metadata, inits);
this.category = inits.isInitialized("category") ? new QCategory(forProperty("category")) : null;
this.store = inits.isInitialized("store") ? new com.kusitms.jipbap.store.QStore(forProperty("store"), inits.get("store")) : null;
}

}

Loading

0 comments on commit 918bea5

Please sign in to comment.