Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4기 박은지] Springboot-jpa weekly 미션 1차 PR입니다. #307

Open
wants to merge 92 commits into
base: Eunji
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 85 commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
b54575c
# Project Settings
wisehero May 9, 2022
033f442
# 고객 CRUD
wisehero May 9, 2022
38cfb5f
# 영속성 컨텍스트 실습
wisehero May 10, 2022
2a46d05
# 엔티티 매핑 실습
wisehero May 10, 2022
5de7219
미션1 : JPA 소개(단일 엔티티를 이용한 CRUD를 구현)
JiyoungMa May 11, 2022
0a1accd
Transactional & Entity Manager 삭제 후, query 나가는거 확인 후 업데이트
JiyoungMa May 12, 2022
911751d
미션2 : 영속성컨텍스트(customer 엔티티를 이용하여 생명주기 실습)
JiyoungMa May 12, 2022
e865046
미션3 : 연관관계매핑(order, order_item, item의 연관관계 매핑 실습)
JiyoungMa May 12, 2022
f8782b4
# 엔티티 매핑 수정
wisehero May 13, 2022
7f14629
# 커밋 수정
wisehero May 11, 2022
26b7e96
# 이전 챕터 수정 사항 적용
wisehero May 13, 2022
0524b8f
# order-orderItem-item 연관관계 매핑
wisehero May 13, 2022
b6f2665
# 제목 수정
wisehero May 13, 2022
eb67b5f
:tada: init: gradle project init
dojinyou May 14, 2022
92ffd35
:heavy_plus_sign: chore: test에 lombok depdency 추가
dojinyou May 14, 2022
8ded31f
:white_check_mark: test(JDBC): JDBC를 이용한 db 접근 방식 실습 테스트
dojinyou May 14, 2022
032ac4a
:heavy_plus_sign: chore: mybatis 관련 depdency 추가
dojinyou May 14, 2022
2f8ffb1
:see_no_evil: chore: gitignore 추가
dojinyou May 14, 2022
3bde013
:sparkles: feat: customer 객체 및 mapper 생성
dojinyou May 14, 2022
556c624
:white_check_mark: test(Mybatis): Mybatis 관련 실습 테스트 코드 작성
dojinyou May 14, 2022
44b9a8e
:heavy_plus_sign: chore: Spring boot starter Data JPA dependency 추가
dojinyou May 14, 2022
505b56c
Update springboot-jpa/src/test/java/com/example/springbootjpa/mission…
JiyoungMa May 14, 2022
34a6569
# 피드백 반영
wisehero May 14, 2022
0bf5c62
:white_check_mark: test(JPA): JPA 동작 관련 실습 구현
dojinyou May 14, 2022
b4ca313
:truck: chore: 연습용 파일 package 수정
dojinyou May 14, 2022
d988eb9
:fire: chore: 연습용 파일 file 삭제
dojinyou May 14, 2022
1b803af
:wrench: chore: DataSource 관련 config class 생성
dojinyou May 14, 2022
6aa9202
:sparkles: feat(Customer): customerEntity 정의
dojinyou May 14, 2022
944afd0
:sparkles: feat(CustomerRepo): Jpa Repo 상속을 통한 CustomerRepository Int…
dojinyou May 14, 2022
5aeb6f5
:white_check_mark: test(CustomerRepo): CRUD 관련 테스트코드 작성
dojinyou May 14, 2022
95dc34a
:lipstick: style: 포맷 정리 및 불필요한 파일 삭제
dojinyou May 14, 2022
38c8931
:heavy_minus_sign: chore: 불필요한 Dependency 삭제
dojinyou May 15, 2022
0f266fd
:bug: fix: Entity 생성자 접근제어자 수정
dojinyou May 15, 2022
5afb1f3
Merge pull request #127 from dojinyou/main
dojinyou May 15, 2022
d3ee88c
Revert "[2기-C]유도진-Mission1:단일 엔티티를 이용한 CRUD를 구현"
learn-programmers May 15, 2022
7a48d64
Merge pull request #135 from prgrms-be-devcourse/revert-127-main
SpencerCP May 15, 2022
8d58a89
Merge pull request #98 from JiyoungMa/JiyoungMa/M2&3
JiyoungMa May 16, 2022
74ccbb0
Revert "[2기-P] 마지영 Mission 2: 영속성 컨텍스트 & Mission 3: 연관관계 매핑"
JiyoungMa May 16, 2022
83b21c8
Merge pull request #143 from prgrms-be-devcourse/revert-98-JiyoungMa/…
JiyoungMa May 16, 2022
17a1588
Merge pull request #118 from wisehero/wisehero/d3
ksy90101 Dec 11, 2022
635a580
Revert "[2기-C] 김지웅 JPA 연관관계 매핑 "
ksy90101 Dec 11, 2022
0e0b51b
Merge pull request #179 from prgrms-be-devcourse/revert-118-wisehero/d3
ksy90101 Dec 11, 2022
47cac2c
test
1o18z Jul 24, 2023
a3acedc
initial commit
1o18z Jul 24, 2023
e5e9227
docs: yml 파일 작성
1o18z Jul 24, 2023
60de603
feat: Customer 엔티티 작성
1o18z Jul 24, 2023
8e84801
feat: CustomerRepository 작성
1o18z Jul 24, 2023
e0c4cf4
feat: Customer 엔티티 수정
1o18z Jul 24, 2023
5b93fef
feat: CustomerController 작성
1o18z Jul 24, 2023
fa223ac
feat: CustomerService 작성
1o18z Jul 24, 2023
c65fcb2
feat: Customer 엔티티 수정
1o18z Jul 24, 2023
e69b3af
feat: CustomerService 작성
1o18z Jul 24, 2023
c19a863
feat: CustomerController 작성
1o18z Jul 24, 2023
7ea216b
chore: build.gradle, yml 파일 수정
1o18z Jul 25, 2023
b2448a3
test: 테스트코드 작성
1o18z Jul 25, 2023
d9bac1c
feat: Order, OrderItem, Item 엔티티 생성
1o18z Jul 26, 2023
6366e90
feat: 페이징 처리
1o18z Jul 26, 2023
2122e42
refactor: 생성자 롬복 사용
1o18z Jul 28, 2023
943581f
refactor: 예외 메시지를 상수로
1o18z Jul 28, 2023
5c1b5f8
refactor: `@Getter` 사용
1o18z Jul 30, 2023
9538224
refactor: 변수명 변경
1o18z Jul 30, 2023
9546d4d
test: Customer 생성 실패 테스트 코드 작성
1o18z Jul 30, 2023
587736d
test: Item 생성 성공과 실패 테스트 코드 작성
1o18z Jul 30, 2023
f442e06
test: OrderItem 생성 성공 테스트 코드 작성
1o18z Jul 30, 2023
c028565
test: Order 생성 성공 테스트 코드 작성
1o18z Jul 30, 2023
017d836
test: 전체적인 성공 테스트 코드 작성
1o18z Jul 30, 2023
88820cd
chore: yml 파일 수정
1o18z Jul 30, 2023
798037f
feat: CustomerRepository 작성
1o18z Jul 24, 2023
6e05165
refactor: 코드 정리
1o18z Jul 31, 2023
5ad4b3c
refactor: 코드 및 패키지 정리
1o18z Jul 24, 2023
ba5ab76
refactor: id의 GenerationType을 IDENTITY로 지정
1o18z Aug 3, 2023
5049134
refactor: 자동으로 시간을 생성해 주도록 BaseEntity에 어노테이션 추가
1o18z Aug 3, 2023
bc043c2
refactor: 길이, 크기에 대한 검증 로직 추가
1o18z Aug 3, 2023
4d0d33b
refactor: Order와 Customer 수정 로직 변경
1o18z Aug 3, 2023
0dfc86b
refactor: RequestMapping 경로 수정
1o18z Aug 3, 2023
02a918a
test: Customer 테스트 작성
1o18z Aug 3, 2023
52cd38c
chore: yml 파일 수정
1o18z Aug 3, 2023
efe7b00
refactor: 코드 정리
1o18z Aug 3, 2023
ed12838
style: import 정리
1o18z Aug 3, 2023
d467af1
refactor: 접근 제어자를 public으로 수정
1o18z Aug 4, 2023
372241b
style: import 정리
1o18z Aug 3, 2023
3c75704
refactor: 접근 제어자를 public으로 수정
1o18z Aug 4, 2023
8a8229a
Merge remote-tracking branch 'origin/main'
1o18z Aug 4, 2023
a20c728
refactor: BaseEntity 클래스를 추상 클래스로 변경
1o18z Aug 4, 2023
437c04e
refactor: ID 생성 전략 AUTO로
1o18z Aug 4, 2023
4d3f03a
refactor: 수정될 테스트 클래스 삭제
1o18z Aug 4, 2023
a122eb3
refactor: 길이 검증 로직 수정
1o18z Aug 4, 2023
903acab
refactor: 타임스탬프 정밀도 지정
1o18z Aug 4, 2023
b57f686
test: OrderItem 테스트 작성
1o18z Aug 6, 2023
10200be
test: Order 테스트 작성
1o18z Aug 6, 2023
0e3921f
test: Customer 테스트 작성
1o18z Aug 6, 2023
8222c38
test: CustomerService 테스트 작성
1o18z Aug 6, 2023
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
199 changes: 199 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
# Default ignored files
/shelf/
/.idea/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

# Created by https://www.toptal.com/developers/gitignore/api/gradle,java,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,java,macos

### Java ###
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
.idea
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Gradle ###
.gradle
**/build/
!src/**/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Avoid ignore Gradle wrappper properties
!gradle-wrapper.properties

# Cache of project
.gradletasknamecache

# Eclipse Gradle plugin generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

### Gradle Patch ###
# Java heap dump
*.hprof

# End of https://www.toptal.com/developers/gitignore/api/gradle,java,macos
========
\# Default ignored files
/shelf/
/.idea/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

# Created by https://www.toptal.com/developers/gitignore/api/gradle,java,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,java,macos

### Java ###
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
.idea
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Gradle ###
.gradle
**/build/
!src/**/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Avoid ignore Gradle wrappper properties
!gradle-wrapper.properties

# Cache of project
.gradletasknamecache

# Eclipse Gradle plugin generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

### Gradle Patch ###
# Java heap dump
*.hprof

# End of https://www.toptal.com/developers/gitignore/api/gradle,java,macos
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@

### 코드리뷰가 마쳤다면! 만족할 코드가 완성되었다면! Merge!
- merge하면서 conflict가 날 수 있겠죠? Git/Github 특강을 다시보며 해결해봅시다.

38 changes: 38 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.2'
id 'io.spring.dependency-management' version '1.1.2'
}

group = 'com.programmers'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '17'
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
}

tasks.named('test') {
useJUnitPlatform()
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading