-->
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: How to obtain the discriminator value programatically?
PostPosted: Wed Mar 23, 2005 5:34 am 
Newbie

Joined: Fri Jan 14, 2005 4:58 am
Posts: 10
Hibernate version:3

For reasons I cant go into (to lengthy but it has to do with interaction with non-java legacy systems) I need to programmatically find out what discriminator values that have been assigned to various classes in the mapping files.
I would also like to get hold of a list of all classes that has known mappings?
I have tried looking at the metadata classes etc but short of parsing the hibernate XML-mapping files a second time I have yet not found any way to do any of these things... all sugestions are apreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 6:04 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if its not in metadata package, then look up via Configuration which have everything.

/max

_________________
Max
Don't forget to rate


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.