Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Can I get set<MyEntity> instead of Indirect Set in one to many relationship(Issue with retrieving children in one to many relation. Getting Indirect Set instead of set<myEntity>)
Can I get set<MyEntity> instead of Indirect Set in one to many relationship [message #997588] Tue, 08 January 2013 08:47 Go to next message
Eclipse UserFriend
Hi,

I have self reference one-to-many relationship(children) in a Entity Domain. The getter method (getChildren()) returns Set<Domain>.

The children are loaded lazily.
When I call getChildren() what I am getting is actually IndirectSet.
The actual children can be accessed using "delegate".

I have a scenarion where I need to be able to access the children recursively using getChildren() not getDeligate()

Is that possible?

We are using eclipselink version 2.4.0
Re: Can I get set<MyEntity> instead of Indirect Set in one to many relationship [message #997692 is a reply to message #997588] Tue, 08 January 2013 10:03 Go to previous message
Eclipse UserFriend
IndirectSet is a Set, so I don't see your issue? What kind of Set do you want, the point of the Set interface is that the implementation does not matter.

If you make the relationship EAGER it will use HashSet by default instead.
Previous Topic:Odd Exception when retrieving a datarow
Next Topic:Can I use ClipseLink to work with Object-Relational datatypes(TYPSES, VARRAY, NESTED TABLES..)
Goto Forum:
  


Current Time: Fri Jul 11 21:43:59 EDT 2025

Powered by FUDForum. Page generated in 0.06665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top