directional « Delete « JPA Q&A





2. bi-directional one-to-many - HOW TO DELETE??? (ANNOTATIONS)    forum.hibernate.org

@Entity @Table(name="users") public class User implements Serializable { @Id @GeneratedValue private long id; @Column(name="name", length=50, nullable=false) private String name; @Column(name="password", length=20, nullable=false) private String password; //fetch is eager, as ...