openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C N Davies" <...@cndavies.com>
Subject RE: Auto Generate table
Date Fri, 03 Jul 2009 19:36:54 GMT
Thanks Judes.

 

I already have:

 

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



Bizarre.

 

Chris

 

From: Judes Tumuhairwe [mailto:judethecutedude@gmail.com] 
Sent: Saturday, 4 July 2009 5:32 AM
To: users@openjpa.apache.org; cnd@cndavies.com
Subject: Re: Auto Generate table

 

See [1] for a complete example. But in short, you need to add the following
property to your persistence.xml properties

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









[1] http://plunchete.wordpress.com/2007/05/06/using-openjpa/


-Judes



On Fri, Jul 3, 2009 at 6:16 AM, C N Davies <cnd@cndavies.com> wrote:

Hi,



What do I need to set to have tables automatically generated by OpenJPA?



Thanks



Chris

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message