Skip to content

Commit

Permalink
[bom-bom-study#6][ADD] Scent 테이블에 대한 간단한 CRUD dao 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
jae57 committed Mar 28, 2019
1 parent 18e9cdf commit bb49ef9
Show file tree
Hide file tree
Showing 18 changed files with 159 additions and 333 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ repositories {
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'mysql:mysql-connector-java:8.0.13'
compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2'
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2'
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pluginManagement {
gradlePluginPortal()
}
}
rootProject.name = 'datasource'
rootProject.name = 'woodywoody'
53 changes: 0 additions & 53 deletions src/main/java/me/jae57/datasource/controller/ItemController.java

This file was deleted.

34 changes: 0 additions & 34 deletions src/main/java/me/jae57/datasource/dto/ItemDto.java

This file was deleted.

69 changes: 0 additions & 69 deletions src/main/java/me/jae57/datasource/model/Condition.java

This file was deleted.

49 changes: 0 additions & 49 deletions src/main/java/me/jae57/datasource/model/Item.java

This file was deleted.

28 changes: 0 additions & 28 deletions src/main/java/me/jae57/datasource/model/Market.java

This file was deleted.

42 changes: 0 additions & 42 deletions src/main/java/me/jae57/datasource/repository/ItemRepository.java

This file was deleted.

37 changes: 0 additions & 37 deletions src/main/java/me/jae57/datasource/service/ItemService.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package me.jae57.datasource;
package me.jae57.woodywoody;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DatasourceApplication {
public class WoodyApplication {

public static void main(String[] args) {
SpringApplication.run(DatasourceApplication.class, args);
SpringApplication.run(WoodyApplication.class, args);
}

}
13 changes: 13 additions & 0 deletions src/main/java/me/jae57/woodywoody/dto/ReqScentDto.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package me.jae57.woodywoody.dto;

import lombok.Getter;

import java.util.List;

@Getter
public class ReqScentDto {
private String scentName;
private String scentKorName;
private String brand;
private String fragrance;
}
9 changes: 9 additions & 0 deletions src/main/java/me/jae57/woodywoody/dto/ScentDto.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package me.jae57.woodywoody.dto;

public class ScentDto {
private Long scentId;
private String scentName;
private String scentKorName;
private String brand;
private String fragrance;
}
13 changes: 13 additions & 0 deletions src/main/java/me/jae57/woodywoody/model/Scent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package me.jae57.woodywoody.model;

import lombok.*;

@Builder
@Getter
public class Scent {
private int scentId;
private String scentName;
private String scentKorName;
private String brand;
private String fragrance;
}
Loading

0 comments on commit bb49ef9

Please sign in to comment.