Guest User

Untitled

a guest
Nov 21st, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. def metadata = new MetadataSources(new StandardServiceRegistryBuilder().build())
  2. .addAnnotatedClass(DummyEntity)
  3. .buildMetadata()
  4. def schemaExport = new SchemaExport()
  5. schemaExport.create(EnumSet.of(TargetType.DATABASE), metadata)
  6.  
  7. hibernate.dialect = <my_dialect>
  8. hibernate.connection.driver_class = <my_driver>
  9. hibernate.connection.url = <my_url>
  10. hibernate.connection.username = <my_username>
  11. hibernate.connection.password = <my_password>
  12. hibernate.hbm2ddl.auto = validate
  13. hibernate.show_sql = true
  14. hibernate.format_sql = true <------- NO EFFECT!
Add Comment
Please, Sign In to add comment