JPA에는 고아 객체 라는 게 있다. @Entity @Getter @Setter @Table(name = "users") public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; @OneToMany(mappedBy = "user", cascade = CascadeType.PERSIST) private List foodList = new ArrayList(); public void addFoodList(Food food) { this.foodList.add(food); food.setUser(this); } } @Entity @Getter @Setter @Tab..