0 Replies Latest reply on Jan 16, 2008 3:45 AM by Thomas Hamacher

    Automatically create schema in database

    Thomas Hamacher Novice

      Hi,

      is there any chance to let the EntityManager automatically create a schema?
      I defined a default schema for my entities through setting the property 'hibernate.default_schema' in the persistence.xml, but unfortunately it is only possible to deploy these entities, if the schema already exists in the database. I thought of something equal as it is already possible for automatic creation of database-tables for the entities if the property 'hibernate.hbm2ddl.auto' has been defined to 'create'.

      Thanks for your help

      Thomas