Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » @Embeddable class containing type of its own
@Embeddable class containing type of its own [message #1349686] Mon, 12 May 2014 09:54
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member

I have a case where I have self containment relationship which I have described using annotations. Below is my class structure

@NoSql(dataFormat = DataFormatType.MAPPED)
public class MySystem implements Serializable{

    List<Folder>    folders    = new ArrayList<Folder>();

@NoSql(dataFormat = DataFormatType.MAPPED)
public class Folder implements Serializable {

    List<Folder>    subFolders    = new ArrayList<Folder>();

However with the above case, my persistence logic runs into an infinite loop. Could someone please help me to embed self type of entities.

Thanks for help.

Previous Topic:FetchGroup does not work for Embedded attribute
Next Topic:readonly query and mix isolated and shared cache types
Goto Forum:

Current Time: Wed May 23 15:17:51 GMT 2018

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

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

Back to the top