[jboss-user] [EJB 3.0] - Re: deletion of few elements in one to many collection.
jdijkmeijer
do-not-reply at jboss.com
Mon Jul 23 12:42:07 EDT 2007
the relationship in the parent entity is mapped like:
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "subject")
| public List<Actor> getActors() {
| return this.actors;
| }
|
the child entity has:
@ManyToOne(fetch = FetchType.LAZY)
| @JoinColumn(name = "subjectid", nullable = false)
| @NotNull
| public Subject getSubject() {
| return this.subject;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066721#4066721
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066721
More information about the jboss-user
mailing list