Comments (2)
OneToOne의 연관관계 주인 결정에 대해서 계속 고민하고 있었는데, 고민이 해결되는 글이었습니다!
nullable=false의 조건으로 lefter join과 inner join이 별도로 나가는 것도 처음 배워가고요!
저 같은 경우에는 '청원(Petition)->청원 답변(Answer)' 이 1대1 관계를 가지는 요구사항이 있는데요,
Answer테이블의 petition_id에 unique=true 조건을 걸어, 하나의 청원에 대해 동시에 여러 답변 요청이 왔을 때의 동시성 이슈에서 안전해질 수 있어서 이런 장점도 있을 것 같아 글 남겨봅니다!
from blog-comment.
JPA Best practice 시리즈 잘 보고 있습니다. 혼자 공부할 때 막막한 점이 많았는데 좋은 내용이 많아요!!
from blog-comment.
Related Issues (20)
- Sql을 통해서 테스트 코드를 쉽게 작성하자 - Yun Blog | 기술 블로그 HOT 2
- Exposed - Yun Blog | 기술 블로그 HOT 3
- Checked Exception을 대하는 자세 - Yun Blog | 기술 블로그 HOT 3
- Spring-Jpa Best Practices Step-06 - Setter 사용하지 않기 - Yun Blog | 기술 블로그 HOT 2
- Github Action With Gradle - Yun Blog | 기술 블로그 HOT 1
- Spring Guide - Domain - Yun Blog | 기술 블로그 HOT 1
- Resilience4j를 이용한 서킷 브레이커 기초 - Yun Blog | 기술 블로그 HOT 1
- Spring Batch Test 작성 방법 및 고찰 - Yun Blog | 기술 블로그 HOT 1
- 테스트 대역폭 늘리기 - Yun Blog | 기술 블로그 HOT 4
- 코틀린 groupBy, groupingBy, chunked, flatMap, aggregate 정리 - Yun Blog | 기술 블로그 HOT 1
- Spring Batch 업데이트 성능 최적화 및 분석 - Yun Blog | 기술 블로그 HOT 1
- IntelliJ 자주 사용하는 기능 정리 - Yun Blog | 기술 블로그 HOT 2
- 좋은 코드 설계를 위한 답없는 고민들 - Yun Blog | 기술 블로그 HOT 1
- Kotlin 기반 경량 ORM Exposed - Yun Blog | 기술 블로그 HOT 2
- Mysql Explain - Yun Blog | 기술 블로그
- MongoDB Update 성능 측정 및 분석 - Yun Blog | 기술 블로그 HOT 2
- 외부 인프라스트럭처 테스트 - Yun Blog | 기술 블로그 HOT 2
- 테스트 코드 작성에 대한 나름의 고찰 - Yun Blog | 기술 블로그 HOT 1
- Batch Insert 성능 향상기 2편 - 성능 측정 - Yun Blog | 기술 블로그 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog-comment.