Thanks Judes.
I already have: <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/> Bizarre. Chris From: Judes Tumuhairwe [mailto:[email protected]] Sent: Saturday, 4 July 2009 5:32 AM To: [email protected]; [email protected] 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 <[email protected]> wrote: Hi, What do I need to set to have tables automatically generated by OpenJPA? Thanks Chris
