Skip to main content



      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 05:54
Eclipse UserFriend
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: Sun Jul 13 16:19:30 EDT 2025

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

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

Back to the top