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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...