• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What are the Hibernate APIs to retrieve Database Schema details

 
suresh ponnuswamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to get the Database schema details (Tables, Columns, Views, Stored Procedures, Triggers, etc) for given DataSource object.
Is there any APIs available in Hibernate to get the Database schema details.

Thanks
Suresh


 
soundar rajan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate doesn't have any API for retrieving DB details, but we can create the native query like session.createSQLQuery(...) and get all those details by using normal SQLs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic