openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <>
Subject RE: Perform automatic drop and create db schema
Date Wed, 03 Jan 2007 02:50:02 GMT
> -----Original Message-----
> From: Shay Banon [] 
> Sent: Tuesday, January 02, 2007 2:33 PM
> To:
> Subject: RE: Perform automatic drop and create db schema
> Automatically clean that data without dropping the tables 
> makes even more
> sense. That would be a really cool feature.

Deciding that two is a quorum, and needing something to do on my flight
to Salt Lake City, I implemented a new SchemaTool action called
'deleteTableContents' that does what you'd expect, more-or-less.

Along the way, I made it possible to specify multiple SchemaTool actions
via a comma-separated list.

I've done some basic testing of it; more testing (especially around the
scope of the classes that the operations happen on) would probably be a
good thing.

You can try it out like so:

    <property name="openjpa.jdbc.SynchronizeMappings"
        value="buildSchema,deleteTableContents" />


    <property name="openjpa.jdbc.SynchronizeMappings"
        value="refresh,deleteTableContents" />

Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

View raw message