-->
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.  [ 3 posts ] 
Author Message
 Post subject: Disctiminator and custom types
PostPosted: Fri Mar 11, 2005 6:46 pm 
Newbie

Joined: Fri Mar 11, 2005 6:32 pm
Posts: 1
Hibernate 2 question...

Is there an effective way to basically combine the use of discriminators and custom types?

I don't necessarily want to subclass my databean class. Instead, I want to subclass my custom type class and have Hibernate create the custom type for me.

This way, I can have multiple discriminators for a single class in a table per hierarchy model.

thanx.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 12, 2005 12:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Are you asking if there is a way to have mutiple discriminator values point to the same subclass?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 12, 2005 2:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yes, this is possible in HB3 (using either an EnhancedUserType, or a <formula> discriminator).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.