-->
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.  [ 2 posts ] 
Author Message
 Post subject: Is there a way to retrieve the discriminator value from DB?
PostPosted: Fri Oct 07, 2005 4:16 pm 
Newbie

Joined: Tue Aug 16, 2005 12:49 pm
Posts: 9
version 3:

Oracle 9i


I have a discriminator value that persisted objects use to distinguish themselves in a Table per class Hierarchy pattern. It would be useful to retrieve this value from the database instead of creating a whole other column to store the same value for display purposes.

Is there a way to access the value somehow?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 5:08 pm 
Beginner
Beginner

Joined: Mon Sep 27, 2004 4:28 pm
Posts: 44
In 2.X I had one class with a property which used the discriminator column. I assume you can still do that in 3.X.. just add it to your hbm.xml file and point it at the same column.


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