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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user