Note that if you're using the dbunit-maven-plugin, this doesn't work
so well as the tables aren't created until your tests fire up.  The
workaround I used is to let the tests fail the first time (if they're
expecting data) and they should succeed the 2nd time b/c the tables
are created.

Matt

On 10/31/06, Matt Raible <[EMAIL PROTECTED]> wrote:
Not really a fix, but a workaround.  If you set your hbm2ddl.auto to
"update", then Hibernate will update your schema w/o you having to
rely on this plugin to update your schema.

For example:

<property name="hibernateProperties">
    <props>
        <prop 
key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
        <prop key="hibernate.hbm2ddl.auto">update</prop>
    </props>
</property>

HTH,

Matt

On 10/31/06, BoJo <[EMAIL PROTECTED]> wrote:
>
> Rumor has that there is a fix for this issue?
>
> Thanks,
>
> Johnson
>
>
> Matt Raible-3 wrote:
> >
> > Is it possible to use this plugin to generate the database schema using
> > JPA
> > annotations?  I'd be interested in adding this functionality if it's not
> > already being worked on.
> >
> > Matt
> >
> > On 10/30/06, Johann Reyes <[EMAIL PROTECTED]> wrote:
> >>
> >>  Hello Srgjan
> >>
> >>
> >>
> >> Right now I finished fixing the links to the correct documentation, also
> >> published a new version of it. You can find the docs at
> >> http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/
> >>
> >>
> >>
> >> Regards
> >>
> >>
> >>
> >> Johann Reyes
> >>
> >>
> >>  ------------------------------
> >>
> >> *From:* Srepfler Srgjan [mailto:[EMAIL PROTECTED]
> >> *Sent:* Saturday, October 28, 2006 7:34 PM
> >> *To:* [email protected]
> >> *Subject:* [mojo-user] Hibernate3-maven-plugin correct web site?
> >>
> >>
> >>
> >>
> >>
> >> Hello,
> >> Which is the current and official hibernate3 web site?
> >> http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/ or
> >> http://mojo.codehaus.org/hibernate3-maven-plugin/ ?
> >> To make things more puzzling the docs are different and for instance the
> >> older version has a page with the goals while the more recent one
> >> doesn't.
> >> Srgjan
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe from this list please visit:
> >>
> >>     http://xircles.codehaus.org/manage_email
> >>
> >
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
>
> --
> View this message in context: 
http://www.nabble.com/hibernate3%3Ahbm2hbmxml-problems-tf2508056.html#a7104779
> Sent from the mojo - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
http://raibledesigns.com



--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to