Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
Hibernate equivalent of MetaData
posted 5 years ago
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
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
Getting Column index
Loading the metadata of the table
How to print all the fields in a record
Hibernate: property name from column name
Getting column names from the table name