Reputation: 23415
Is there a way to tell OpenJPA
to automatically update tables in the database on application deployment?
I know that hibernate has a property:
<prop key="hibernate.hbm2ddl.auto">update</prop>
Is there something similar in OpenJPA
?
Upvotes: 1
Views: 549
Reputation: 3860
Yes:
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
Sebastian
Upvotes: 2