# SpringDataJDBC
220423 TIL (DDD_Aggregate)
https://spring.io/projects/spring-data-jdbc- https://martinfowler.com/bliki/DDD_Aggregate.htmlhttps://eocoding.tistory.com/36Spring Dat
220421 TIL (@MappedCollection)
https://docs.spring.io/spring-data/jdbc/docs/2.3.1/api/org/springframework/data/relational/core/mapping/MappedCollection.html위 spring 공식문서만 보더라도
220419~220420 TIL (SpringDataJdbc oneToMany)
호눅스의 깃헙코드반찬 프로젝트를 진행하면서 간단하게 테이블을 정의했다.하나의 dish와 image 테이블은 1:N 관계를 맺는다. 1:N 관계를 가졌을때, 하나의 dish와 해당하는 dish의 id를 가지는 모든 image를 하나의 객체로 만들 수는 없을까? 여러번의

spring.io/blog/Spring Data JDBC, References, and Aggregates
https://spring.io/blog/2018/09/24/spring-data-jdbc-references-and-aggregatesaggregate root는 purchaseOrder.purchaseOrder는 orderItem을 Set로 갖느다 여기서

인공키 UUID VS GEN KEY
최근에 JPA, Spring Data JPA 와 같은 ORM 들의 강세로, Primary Key 생성 전략을 DB 에 위임하는 추세가 늘어나고 있다. 이러한 방식의 문제점은 무엇일까 가만히 생각해보니, 데이터베이스 자체의 의미론적으로 봤을때 , 별 의미없는 값이라고 생