openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From idan <ida...@gmail.com>
Subject Re: Does OPENJPA support to generate table automatically?
Date Thu, 05 Aug 2010 13:56:04 GMT

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.

Mime
View raw message