In your persistence.xml file, under the relevant <persistenence-unit>
You can set this property:

        <property name="jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)"/>

You can read more about it here:
http://openjpa.apache.org/builds/1.0.2/apache-openjpa-1.0.2/docs/manual/ref_guide_conf_jdbc.html#openjpa.jdbc.SynchronizeMappings
http://openjpa.apache.org/builds/1.0.2/apache-openjpa-1.0.2/docs/manual/ref_guide_conf_jdbc.html#openjpa.jdbc.SynchronizeMappings
 
-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/Does-OPENJPA-support-to-generate-table-automatically-tp5376084p5376576.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to