-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: What are the Hibernate APIs to retrieve Database Schema
PostPosted: Mon Aug 05, 2013 7:11 am 
Newbie

Joined: Mon Aug 05, 2013 7:01 am
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: What are the Hibernate APIs to retrieve Database Schema
PostPosted: Thu Aug 08, 2013 2:28 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
These two posts might help:

http://stackoverflow.com/questions/10607196/how-to-get-database-metadata-from-entity-manager
http://docs.jboss.org/hibernate/core/3.2/api/org/hibernate/tool/hbm2ddl/DatabaseMetadata.html

(I don't know if these feature are still there... But give it a try.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.