Hi Chris,

Can you please try to run mapping tool against your entities.

Here is more info about mapping tool:

http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_mapping_mappingtool_examples

Info on Ant task for mapping tool :
http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_integration_mappingtool


Regards,
Ravi.

-----Original Message-----
From: C N Davies [mailto:[email protected]] 
Sent: Friday, July 03, 2009 1:37 PM
To: Judes Tumuhairwe; [email protected]
Subject: RE: Auto Generate table

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

 

Reply via email to