File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes JPA-storing HumanMan entity which references another instances of HumanMan    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JPA-storing HumanMan entity which references another instances of HumanMan    " Watch "JPA-storing HumanMan entity which references another instances of HumanMan    " New topic
Author

JPA-storing HumanMan entity which references another instances of HumanMan

Kenneth Gustafsson
Ranch Hand

Joined: Jan 10, 2008
Posts: 40
I have an entity which references another instance of itself. It's the basic structure needed for trees and other types of graphs. When I try to use JPA to store this entity I get a mapping exception.


Has anyone got any tips for me?
[ April 08, 2008: Message edited by: Kent Larsson ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JPA-storing HumanMan entity which references another instances of HumanMan