openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Palacherla <ravi.palache...@oracle.com>
Subject RE: Auto Generate table
Date Fri, 03 Jul 2009 20:57:20 GMT
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:cnd@cndavies.com] 
Sent: Friday, July 03, 2009 1:37 PM
To: Judes Tumuhairwe; users@openjpa.apache.org
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: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
View raw message