일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 인공지능
- Github
- Python
- ai
- Spring
- Numpy
- javascript
- java
- 함수
- Linux
- Pattern
- centos
- mysql
- data
- framework
- Server
- Analysis
- interface
- db
- learning
- Security
- git
- error
- 자바
- Deep
- Web
- SSH
- LIST
- DeepLearning
- mariaDB
- Today
- Total
목록JPA (2)
PostIT
10.11.2017- Author : SeolHun - IDE : IntelliJShould know these annotations. @Embeddable @Embeddaded @Access설명은 추후에import hi.cord.com.user.main.user.domain.user.User; import lombok.Data; import org.springframework.data.annotation.CreatedBy; import javax.persistence.*; /** * The type Common domain For Entity. * * AccessType is so important to access from Embedded Class * * * @Field : CREATED_NICKN..
# JPA CascadeType 종류 - 최근 수정일 : 2017.04.18 ## 1. 배경- JPA 개인 프로젝트를 진행하던 중, 게시판과 파일, 댓글에서 @OneToMany - @ManyToOne의 관계에서 영속성 관리에서 문제가 발생되었으며, 영속성에서 참조된 객체를 지워주지 않았기 때문에 발생하였다. 더 정확한 내용은 알아볼 예정이다. ## 2. 내용CascadeType.PERSIST 엔티티를 영속화 할 때이 필드에 보유 된 엔티티도 유지합니다. EntityManager가 flush 중에 새로운 엔티티를 참조하는 필드를 찾고이 필드가 CascadeType.PERSIST를 사용하지 않으면 오류이므로이 Cascade 규칙의 자유로운 적용을 제안합니다. CascadeType.MERGE 엔티티 상태를 병..