This is either an FAQ or an RFE to Hibernate.
With Postgres and Hibernate the automatic ddl creation (hibernate.hbm2ddl.auto="create") does not work for tables in a particular schema unless the schema exists prior to the Hibernate/EntityManager initialization. I get the error
Code:
org.hibernate.tool.hbm2ddl.SchemaExport - ERROR: schema "xxx" does not exist.
If the schema "xxx" exists in the Postgres DB it is no problem to auto-create the tables within it. So if there isn't any switch/property to make this work, it would be nice if the Hibernate team could enhance their product with this little feature?
Thanks,
Gerd