-->
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: Getting property / column names from mapping file
PostPosted: Wed Sep 28, 2005 4:38 pm 
Newbie

Joined: Wed Sep 28, 2005 1:05 am
Posts: 5
Hi,
1. I need to get the hibernate column name corresponding to a database column name that I have in my application. Is there a way to query the mapping file for that class / table and retrieve hibernate property name for a given column name ?
2. Is there also a way to get all the oclumns for a particular class / table in my application at runtime ?

Please can anyone tell me which API in hibernate would let me do this ?

Harsha


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 4:56 pm 
Regular
Regular

Joined: Fri Sep 09, 2005 11:35 am
Posts: 101
see the javadocs for Package org.hibernate.cfg and Package org.hibernate.mapping.


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.