-->
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: Fetching available Columns in a Table --- Hibernate
PostPosted: Thu Feb 02, 2012 4:56 am 
Newbie

Joined: Thu Feb 02, 2012 4:43 am
Posts: 3
Hi Everyone,


In SQL, there is an option where you can retrieve the column names of a table using something called a getmetadata function. I am working on a program that requires me to do the same with hibernate. I have a table name (just the table and I don't know the columns available underneath it ) and I need to retrieve the column names of the table... is that possible?

Any point in the right direction is much appreciated.

Thank you in advance


Top
 Profile  
 
 Post subject: Re: Fetching available Columns in a Table --- Hibernate
PostPosted: Thu Feb 02, 2012 6:09 am 
Newbie

Joined: Tue Jan 31, 2012 3:44 pm
Posts: 7
Hey, I found this: https://forum.hibernate.org/viewtopic.php?p=2441622 maybe it will help you :)


Top
 Profile  
 
 Post subject: Re: Fetching available Columns in a Table --- Hibernate
PostPosted: Fri Feb 03, 2012 1:15 am 
Newbie

Joined: Thu Feb 02, 2012 4:43 am
Posts: 3
Hi etherid,

Thank you so much for your time and reply... I did try it out but that did not work for me. Is there another possible solution?
Thank you
Have a nice day


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.