These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Need help to create mapping for inhertance base model
PostPosted: Sun Jul 06, 2008 7:51 am 
Newbie

Joined: Thu Jun 26, 2008 8:13 am
Posts: 1
I want prepare mapping file for below model:

class Party
{

long id;

List<PartyRole> partyRoles;
}

class Person : Party
{
....
....

}

class Organization : Party
{
....
....

}

I need help to to creare mapping file for above model so that:

- I can list all records with some specific role e.g. Customer. If the retuned record is of Organization type, it should have Organization specific details also and if it is of Person type, it should have that details. (A customer can be a Person type or Organization type)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.