Hi Friends!
I am new to hibernate. now i am working in hibernate enhancement project.
where i am using
HQL queries to retrieve data from mysql database.
In my project they get field names from the table using
DatabaseMeta.,
Like the following...
Code:
DatabaseMetaData meta = connection.getMetaData();
ResultSet rsColumns = null;
rsColumns = meta.getColumns(null, null, name, null);
rsColumns.next();
while (rsColumns.next()) {
System.out.println(rsColumns.getString("TYPE_NAME"));
System.out.println(rsColumns.getString("COLUMN_NAME"));
}
How will i convert this JDBC code to Hibernate code...
I am using MyEclipse 5.5 for my project and MySQL 5.0..