JPA map relation entity parentID...

Posted by Fabio Beoni on Stack Overflow See other posts from Stack Overflow or by Fabio Beoni
Published on 2010-04-30T10:42:21Z Indexed on 2010/04/30 10:47 UTC
Read the original article Hit count: 336

Filed under:
|
|
|
|

Hello,

could someone help me to understand how can I define an entity with JPA mapping that has a relation with it self?

For example, my entity is CompanyDivision, divisionA contains divisionB, divisionC and divisionB contains divisionB1, divisionB2

  • divisionA
    • divisionB
      • divisionB1
      • divisionB2
    • divisionC

Thank you!

© Stack Overflow or respective owner

Related posts about jpa

Related posts about map