DDL generation and general persistence.xml settings (OpenJPA)

后端 未结 2 989
星月不相逢
星月不相逢 2021-01-05 03:46

Summary

I\'m trying to run a Java web application JPA 2.0 example. The example application was written to run in Glassfish, using

2条回答
  •  旧时难觅i
    2021-01-05 04:05

    If you add the openjpa.jdbc.SynchronizeMappings property as shown below OpenJPA will auto-create all your tables, all your primary keys and all foreign keys exactly to match your objects

    
    

    Alternatively, you can use EclipseLink in TomEE by just adding the EclipseLink jars to /lib/

    refer here for Common PersistenceProvider properties

提交回复
热议问题