Hibernate subclass with foreign key relationships

Posted by shikarishambu on Stack Overflow See other posts from Stack Overflow or by shikarishambu
Published on 2010-05-25T16:29:38Z Indexed on 2010/05/25 16:31 UTC
Read the original article Hit count: 150

I need some help defining the following object hierarchy/ database relationship in Hibernate

From the object sense – Agent is inherited from Person and Agency is inherited from Organization. they are inherited from Party which can have multiple Addresses associated with it

The database consists of Agent - ID - Name -PartyID (references Party.ID)

Agency -ID -Name -PartyID (references Party.ID)

Address -AddrID -PartyID (references Party.ID) -Street

Party. -PartyID

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate