File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate equivalent of MetaData Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Hibernate equivalent of MetaData " Watch "Hibernate equivalent of MetaData " New topic
Author

Hibernate equivalent of MetaData

Maya sekar
Greenhorn

Joined: Sep 22, 2011
Posts: 28
Hi,

So I know there is an option in sql where you can fetch column names of a table using metadata,


In hibernate... say i don't know the name of the column i'll be inserting values in.. how do i retrieve the available columns names from a table in hibernate? Is that even possible and if so how?

I understand that i need to map a table to bean to be able to access it... But still is it possible?

Any point in the right direction is much appreciated... thank you in advance

have a nice day
 
 
subject: Hibernate equivalent of MetaData
 
Threads others viewed
Getting column names from the table name
How to print all the fields in a record
Getting Column index
Hibernate: property name from column name
Loading the metadata of the table
IntelliJ Java IDE