Question

How can i get tables meta data with hibernate ? and then How can i store them in some tables?(name of tables in a table and their columns in the other table). Please get me some guide. Note: I cannot use JDBC.

Was it helpful?

Solution

It's kind of an uncommon request, since hibernate is an object-relational mapper, whose main feature is to hide the underlying database and let you operate on objects.

You didn't specify for what you need the meta data and which meta data at all, but I guess it's not the right approach, trying to solve it via hibernate.

And what is the reason for not being able to use JDBC? Even when using hibernate, you can fire native queries, which may give you the information needed. But be cautious, this is likely to be a database specific operation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top