A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

 « Return to Thread: hibernate3:hbm2ddl

Re: hibernate3:hbm2ddl

by Rob van Oostrum-2 :: Rate this Message:

Reply to Author | View in Thread

add <drop>true</drop> to the <componentProperties> of the
hibernate3-maven-plugin

R.

On 3/2/07, Stine, Matt <Matt.Stine@...> wrote:

>
>
>
>
> I remember in the past (1.9.x) that when I made changes to my model classes,
> ant script would update my DB schema. It seems that the equivalent 2.0
> operation, "mvn compile hibernate3:hbm2ddl" does not do this. If the table
> already exists it just moves on to the next one. Am I doing something wrong?
> Is there a way to do a "clean" on your DB so that the updates get picked up?
> Or do I have to drop the schema from MySQL every time?
>
>
>
> Thanks.
>
>
>
> _____________________________________
>
> Matt Stine
>
> Senior Software Engineer
>
> Hartwell Center for Bioinformatics and Biotechnology
>
> St. Jude Children's Research Hospital
>
> 332 N. Lauderdale St.
>
> Memphis, TN 38105
>
> Voice: 901.495.4602
>
> Fax: 901.495.5108
>
> Pgr: 901.495.3578 #1314
>
> matt.stine@...
>
> http://www.hartwellcenter.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: hibernate3:hbm2ddl