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
Hello,

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


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

    @ElementCollection
    List<Folder>    folders    = new ArrayList<Folder>();
}

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

    @ElementCollection
    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.

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


Current Time: Fri Apr 19 05:49:16 GMT 2024

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

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

Back to the top