On Aug 4, 2008, at 6:51 PM, David Blevins wrote:

Marcin,

Do you happen to know what the TopLink property is for automatically creating all the required tables?

In OpenJPA it's:
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>

In Hibernate it's:
     <property name="hibernate.hbm2ddl.auto" value="create-drop"/>

Got it (for EclipseLink anyway):

    <properties>
<property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.HSQLPlatform"/> <property name="eclipselink.ddl-generation" value="create- tables"/> <property name="eclipselink.ddl-generation.output-mode" value="database"/>
    </properties>

-David

Reply via email to