Hibernate version: 2.1.6
I am having a "cannot access loading collection" problem as per described in the Hibernate FAQs from the Forum.
http://www.hibernate.org/74.html#A28
From the answer, I have to create another setter (setParentFromApp) to set the parent object. How do I only sets the parent field in setParent()?
Is it something like this?
private setParent(Parent o) {
this.parent.setId = o.getId;
}
public setParentFromApp(Parent o) {
this.parent = o;
}
I have tried the solution described but so far it is not working. It gives me NullPointerException in setParent()
What can I do to fix this? Thanks