-->
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: [Hibernate 3] Accessing class metadata at runtime
PostPosted: Mon Aug 01, 2005 9:52 am 
Newbie

Joined: Tue Mar 08, 2005 11:29 am
Posts: 14
We're using Hibernate 3.0.5 on our project and to meet one of the requirements I need to be able to read (and just read) some class mapping metadata. Specifically, I need to get able to determine the schema, table, and column names for a field within a class. I've spent some time looking, searching the forums (I might have just missed it), but is there any way to access this information at runtime?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 01, 2005 2:28 pm 
Regular
Regular

Joined: Wed Jan 07, 2004 5:16 pm
Posts: 65
Location: CA, USA
Try looking at getClassMapping() on Configuration. This returns a PersistentClass which I think has the info you need.

Kevin Hooke


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.