특정 엔티티를 영속 상태로 만들 때 연관된 엔티티도 함께 영속 상태로 만들고 싶으면 영속성 전이(transitive persistence) 기능을 사용하면 된다. JPA는 CASCADE 옵션으로 영속성 전이를 제공한다. @Entity public class Parent {//부모 엔티티 @Id @GeneratedValue private Long id; @OneToMany(mappedBy = "parent") private List children = new ArrayList(); ... } @Entity public class Child {// 자식 엔티티 @Id @GeneratedValue private Long id; @ManyToOne private Parent parent; ... } JPA에서 ..