• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA/Hibernate: Programatically set create-ddl == create

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to programatically specify the create-ddl and set it to "create" rather than doing it in the config file?

Thanks.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you call setProperties(Properties) on the Configuration you can set whatever properties you like. Hibernate will not overwrite a property if its already set.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic