Advertisement

05.16.2008 at 11:14AM PDT, ID: 23409268
[x]
Attachment Details

How to get db and table metadata using Hibernate?

Asked by McJava1967 in Java Programming Language, J2EE

Dear Experts,

I'd like to create a class that returns:

the name of each table in a given database
the name, type and length (if applicable) of each column in each table

I know I can use JDBC to return a ResultSet containing all this, but I'm too lazy, and I'm just starting to work with Hibernate.  Is there an easy way to get this data through Hibernate?

Thanks!
McJava1967Start Free Trial
[+][-]05.16.2008 at 01:41PM PDT, ID: 21586285

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, J2EE
Sign Up Now!
Solution Provided By: dfu23
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628