• Stars
    star
    1,042
  • Rank 44,217 (Top 0.9 %)
  • Language
    Java
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

:octocat: spring-jpa best practices

Build Status Coverage Status codecov Hits

Spring-Jpa Best Practices

์Šคํ”„๋ง์œผ๋กœ ๊ฐœ๋ฐœ์„ํ•˜๋ฉด์„œ ์ œ๊ฐ€ ๋Š๋‚€ ์ ๋“ค์— ๋Œ€ํ•ด์„œ ๊ฐ„๋‹จํ•˜๊ฒŒ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค. ์•„์ง ๋ถ€์กฑํ•œ ๊ฒŒ ๋งŽ์•„ Best Practices๋ผ๋„ ๋‹น๋‹นํ•˜๊ฒŒ ๋งํ•˜๊ธด ์–ด๋ ต์ง€๋งŒ, ์ €์™€ ๊ฐ™์€ ๊ณ ๋ฏผ์„ ํ•˜์‹œ๋Š” ๋ถ„๋“ค์—๊ฒŒ ์กฐ๊ธˆ์ด๋ผ๋„ ๋„์›€์ด ๋˜๊ณ  ์‹ถ์–ด ์ด๋ ‡๊ฒŒ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค. ์ง€์†ํ•ด์„œ ํ•ด๋‹น ํ”„๋กœ์ ํŠธ๋ฅผ ์ด์–ด ๋‚˜์•„๊ฐˆ ์˜ˆ์ •์ด๋ผ ๊นƒํ—ˆ๋ธŒ Start, Watching ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด์‹œ๋ฉด ๊ตฌ๋… ์‹ ์ฒญ๋ฐ›์œผ์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ €์˜ ๊ฒฝํ—˜์ด ์—ฌ๋Ÿฌ๋ถ„์—๊ฒŒ ์กฐ๊ธˆ์ด๋ผ๋„ ๋„์›€์ด ๋˜๊ธฐ๋ฅผ ๊ธฐ์›ํ•ฉ๋‹ˆ๋‹ค.

๋ชฉ์ฐจ

  1. step-01 : Account ์ƒ์„ฑ, ์กฐํšŒ, ์ˆ˜์ • API๋ฅผ ๊ฐ„๋‹จํ•˜๊ฒŒ ๋งŒ๋“œ๋Š” ์˜ˆ์ œ
  2. step-02 : ํšจ๊ณผ์ ์ธ validate, ์˜ˆ์™ธ ์ฒ˜๋ฆฌ (1)
  3. step-03 : ํšจ๊ณผ์ ์ธ validate, ์˜ˆ์™ธ ์ฒ˜๋ฆฌ (2)
  4. step-04 : Embedded๋ฅผ ์ด์šฉํ•œ Password ์ฒ˜๋ฆฌ
  5. step-05: OneToMany ๊ด€๊ณ„ ์„ค์ • ํŒ
  6. step-06: Setter ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ธฐ
  7. step-07: Embedded๋ฅผ ์ ๊ทน ํ™œ์šฉ
  8. step-08: OneToOne ๊ด€๊ณ„ ์„ค์ • ํŒ
  9. step-09: OneToMany ๊ด€๊ณ„ ์„ค์ • ํŒ(2)
  10. step-10: Properties ์„ค์ •๊ฐ’ ๊ฐ€์ ธ์˜ค๊ธฐ
  11. step-11: Properties environment ์„ค์ •ํ•˜๊ธฐ
  12. step-12: ํŽ˜์ด์ง• API ๋งŒ๋“ค๊ธฐ
  13. step-13: Query Dsl์ด์šฉํ•œ ํŽ˜์ด์ง• API ๋งŒ๋“ค๊ธฐ
  14. step-14: JUnit 5์ ์šฉํ•˜๊ธฐ
  15. step-15: Querydsl๋ฅผ ์ด์šฉํ•ด์„œ Repository ํ™•์žฅํ•˜๊ธฐ(1)
  16. step-16: Querydsl๋ฅผ ์ด์šฉํ•ด์„œ Repository ํ™•์žฅํ•˜๊ธฐ(2)

step-XX Branch ์ •๋ณด๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. ๋ณด๊ณ  ์‹ถ์€ ๋ชฉ์ฐจ์˜ Branch๋กœ checkout์„ ํ•ด์ฃผ์„ธ์š”

์งˆ๋ฌธ

  • Github Issue๋ฅผ ํ†ตํ•ด์„œ ์ด์Šˆ๋ฅผ ๋“ฑ๋กํ•ด์ฃผ์‹œ๋ฉด ์ œ๊ฐ€ ์•„๋Š” ๋ถ€๋ถ„์— ๋Œ€ํ•ด์„œ๋Š” ์ตœ๋Œ€ํ•œ ๋‹ต๋ณ€๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.

๊ฐœ๋ฐœํ™˜๊ฒฝ

  • Spring boot 1.5.8.RELEASE
  • Java 8
  • JPA & H2
  • lombok
  • maven

ํ”„๋กœ์ ํŠธ ์‹คํ–‰ํ™˜๊ฒฝ

์‹คํ–‰

$ mvn spring-boot:run

API Swagger

ํ•ด๋‹น API๋Š” Swagger http://localhost:8080/swagger-ui.html์œผ๋กœ ํ…Œ์ŠคํŠธํ•ด ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

More Repositories

1

spring-guide

:octocat: Spring ์‹ค์ „ ๊ฐ€์ด๋“œ
Java
1,859
star
2

dev-info

:octocat: ์ข‹์€ ํ•™์Šต ์ž๋ฃŒ ๋ฐ GitHub ํ™œ๋™ ํ•˜์‹œ๋Š” ๋ถ„๋“ค์„ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค.
1,391
star
3

TIL

:octocat: Today I Learned. ๊ทธ๋‚  ๊ทธ๋‚  ๋ชจ๋“  ํ™œ๋™๋“ค์„ ์ •๋ฆฌ
896
star
4

github-project-management

:octocat: Github๋กœ ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌํ•˜๊ธฐ
Java
849
star
5

blog-sample

:octocat: Yun Blog sample code
Kotlin
350
star
6

IntelliJ

:octocat: ๐Ÿ“„ IntelliJ ์‚ฌ์šฉ๋ฒ•
162
star
7

node-yun

:octocat: Node.JS ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” ๋ชจ๋“ˆ ์ •๋ฆฌ
JavaScript
75
star
8

springboot-oauth2

springboot-oauth2
Java
65
star
9

spring-SOLID

:octocat: Spring ์˜ˆ์ œ๋กœ ๋ณด๋Š” SOLID
Java
63
star
10

spring-security-oauth2-social

:octocat: Spring Security OAuth2 Social Google Facebook
Java
62
star
11

KaKaoBot-Node

:octocat: ๋ชฉํฌ๋Œ€ํ•™๊ต ์นด์นด์˜ค๋ด‡
JavaScript
36
star
12

springboot-restdocs

:octocat: Spring Rest docs
Java
31
star
13

code-design

ํŒจ์ŠคํŠธ ์บ ํผ์Šค ์œ ์ง€๋ณด์ˆ˜ํ•˜๊ธฐ ์ข‹์€ ์ฝ”๋“œ ๋””์ž์ธ
Java
27
star
14

Node-Social-Login

:octocat: ์†Œ์…œ ๋กœ๊ทธ์ธ Node Facebook, Kakao, Naver
JavaScript
18
star
15

spring-kotlin-api

Kotlin
14
star
16

spring-rest-docs

ํŒจ์ŠคํŠธ์บ ํผ์Šค Spring REST Docs ๊ฐ•์˜ ์ž๋ฃŒ
Java
13
star
17

spring-boot-slack-notificaion

:octocat: Spring Slack Notification
Java
11
star
18

msa-study-sample

Java
11
star
19

cheese10yun.github.io

HTML
6
star
20

social-signup

Java
4
star
21

github-action

Kotlin
2
star
22

Yun-Blog

:octocat: Yun-Blog
2
star
23

msa-commerce

Java
1
star
24

spring-boot-sample

Kotlin
1
star
25

Kotlin-MSA

:octocat: Kotlin MSA Study
Kotlin
1
star
26

spring-sample

spring-sample
Java
1
star
27

code

Kotlin
1
star
28

Loopback-begin

:octocat: Loopback-Begin Proejct
JavaScript
1
star
29

loopback-boards

loopback-boards
JavaScript
1
star
30

security-study

:octocat: Spring Security stduy
Java
1
star
31

Node-TDD

:octocat: Node.js Restfull API TDD
JavaScript
1
star