-->
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.  [ 4 posts ] 
Author Message
 Post subject: COMPOSITE ELEMENT
PostPosted: Thu Mar 29, 2007 12:00 pm 
Newbie

Joined: Thu Mar 29, 2007 11:50 am
Posts: 2
Is it possible to have some sort of discriminator field for a composite-element just like a subclass? The reason being is that I would like to define a class heirachy just using composite-element and not having to resort to subclasses.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 30, 2007 2:46 am 
Senior
Senior

Joined: Mon Aug 21, 2006 9:18 am
Posts: 179
Subclassing components isn't supported in NHibernate yet. You'll need to do an entity association to accomplish that.

MIKE

_________________
If this helped...please remember to rate it!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 30, 2007 9:48 am 
Newbie

Joined: Thu Mar 29, 2007 11:50 am
Posts: 2
Can you provide an example of an entity association?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 30, 2007 1:18 pm 
Senior
Senior

Joined: Mon Aug 21, 2006 9:18 am
Posts: 179
All an entity association means is that the entity that is in the collection has its own 'class' mapping file, as opposed to being a component within another class mapping.

_________________
If this helped...please remember to rate it!


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

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.