openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski" <ja...@laskowski.net.pl>
Subject Re: (No)existing table in SQL server
Date Sun, 15 Apr 2007 13:36:04 GMT
> I look at my application once again, and I saw that OpenJPA really doesn't
> create tables in my database !
> In my persistence.xml file I have following entry :
> ...
> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
...
> Do You know how can I configure OpenJPA to recreate tables ?

Sure. It works with OpenJPA 0.9.7-SNAPSHOT and 0.9.8-SNAPSHOT:

<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(SchemaAction='add,deleteTableContents')" />

It won't work with 0.9.6-incubating.

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Mime
View raw message