|one to many bidirectional self reference - problem [message #988974]
||Tue, 04 December 2012 01:51
| vamsi raghava
Registered: December 2012
I have self reference one to many bidirectional relationship.
while persisting a child i am doing the following.
The children is getting persisted. I could even see the relationship column getting populated (parentID is getting populated in childs "parentID" column ).
problem is when i retrieve the parent with id and try to get the children of that parent i am not getting, even though the DB shows relation ship.
2. parent.getChildren(); // getting emptyList here.
Even checked the logs, could see the SELECT query for the parent but no query is fired when i say parent.getChildren(). "lazyLoading" is enabled.
The same scenario works fine with Junits in standalone environment.
In weblogic10.3.5 with eclipselink version 2.4.0 ... we are facing this problem.
Powered by FUDForum
. Page generated in 0.01687 seconds