-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate 5 Schema Creation
PostPosted: Tue Sep 29, 2015 4:29 am 
Beginner
Beginner

Joined: Fri Aug 29, 2003 4:26 am
Posts: 26
Location: Germany, Dortmund
Use case: I have a configured EMF and I want to have the DDL creation scripts (e.g.: create table ...) for this EMF as String.

In Hibernate 4 it was possible by the Configuration. The Hibernate 5 documentation still describes that way:
Code:
Configuration cfg = ....;
new SchemaExport(cfg).create(false, true);


But Hibernate 5 now provides the SchemaManagementTool and the SchemaCreator. However I have found no way to get the MetadataImplementor, especially from an existing EMF.
Very cool would be a feature like new SchemaCreator(EntityManagerFactory emf).

Any suggestion how I can create the script by an existing EMF?


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

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.