openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@bea.com>
Subject RE: Perform automatic drop and create db schema
Date Wed, 31 Jan 2007 20:38:50 GMT
It's in 0.9.7-snapshot; I don't remember the change number.

-Patrick

-- 
Patrick Linskey
BEA Systems, Inc. 

_______________________________________________________________________
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. 

> -----Original Message-----
> From: Dain Sundstrom [mailto:dain@iq80.com] 
> Sent: Wednesday, January 31, 2007 12:22 PM
> To: open-jpa-dev@incubator.apache.org
> Subject: Re: Perform automatic drop and create db schema
> 
> What version of OpenJPA will this be in and did dropTable get  
> implemented?
> 
> -dain
> 
> On Jan 2, 2007, at 6:50 PM, Patrick Linskey wrote:
> 
> >> -----Original Message-----
> >> From: Shay Banon [mailto:kimchy@gmail.com]
> >> Sent: Tuesday, January 02, 2007 2:33 PM
> >> To: open-jpa-dev@incubator.apache.org
> >> 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" />
> >
> > or:
> >
> >     <property name="openjpa.jdbc.SynchronizeMappings"
> >         value="refresh,deleteTableContents" />
> >
> > -Patrick
> > 
> ______________________________________________________________
> ________ 
> > _
> > 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.
> >
> 
> 

Mime
View raw message