openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <awh...@bea.com>
Subject Re: Perform automatic drop and create db schema
Date Tue, 02 Jan 2007 21:18:11 GMT
> Unfortunately, we don't have any automatic drop-table feature, but  
> I agree it would be handy (you might want to make a JIRA report  
> with the suggestion).

Note that the "SynchronizeMappings" property allows you to use all  
the arguments of the mappingtool.  So you can try something like:

buildSchema(SchemaAction=refresh, DropTables=true)

Theoretically, that will drop unused columns and tables while adding  
any new columns and tables needed for your mappings.  If you try it,  
let us know how it works out. 
_______________________________________________________________________
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