jsr338-experts@jpa-spec.java.net

[jsr338-experts] Standardization of additional persistence.xml properties

From: Adam Bien <abien_at_adam-bien.com>
Date: Thu, 30 Jun 2011 11:50:57 +0200

Hi all,

proposal for standardization of table generation strategy:

 <property name="javax.persistence.table-generation-strategy" value="CREATE | DROP-AND-CREATE | MIGRATION | NONE /> Default should be NONE.

 I would like to propose MIGRATION as an optional parameter. In this case the JPA provider is expected to alter the tables, instead of drop and recreate them,

any thoughts?

thanks!,

adam