Hi Kevin,

I found a problem. I use OpenJPA with Spring framework and have bean:

 <bean id="entityManagerFactory"
class="org.springframework.orm.jpa.ContainerEntityManagerFactoryBean">
    <property name="dataSource" ref="dataSource"/>
    <property name="jpaVendorAdapter">
      <bean
class="org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter">
        <property name="showSql" value="true"/>
        <property name="generateDdl" value="true"/>
        <property name="databasePlatform"
value="oracle.toplink.essentials.platform.database.HSQLPlatform"/>
      </bean>
    </property>
    <property name="loadTimeWeaver">
      <bean
class="org.springframework.instrument.classloading.SimpleLoadTimeWeaver"/>
    </property>
  </bean>

I only set property "generateDdl" to true and all working fine now.

Thanks.
-- 
View this message in context: 
http://n2.nabble.com/Auto-generate-tables-tp4559624p4563976.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to