2

using

   < property name="hbm2ddl.auto"> create< / property >

only creates the tables, and whenever a schema does not exist, hibernate fails to create the table because the schema does not exist.

jmj
  • 237,923
  • 42
  • 401
  • 438
demonz demonz
  • 641
  • 1
  • 15
  • 32

1 Answers1

0

Hibernate will not create the schema for you, but maybe you can tell your DBMS to run some script before hibernate starts to create the schema objects. I found something here and I think you can use it as a start point.

davidbuzatto
  • 9,207
  • 1
  • 43
  • 50