Thanks, this helped. First I realized I needed to add the line:

<property name="hibernate.hbm2ddl.auto">update</property>

to my hibernate.cfg.xml file.

This worked only if I used certain annotations (@Basic, @Enumeration, and
@Id were used) in my entities, but failed if I used @Column.

It turns out I had simply failed to add ejb3-persistence.jar to my classpath
(hibernate-annotations.jar and hibernate-commons-annotations.jar were not
enough). Oops! After adding ejb3-persistence.jar, everything worked like a
charm.



On 7/24/07, Eugene Lozovan <[EMAIL PROTECTED] > wrote:

Hello,

I used Hibernate Annotations, in case if it might be
helpful< http://elozovan.blogspot.com/2007/05/simpletapestry-5-crud
-application-step_24.html>
.


E.L.

On 24/07/07, Peter Beshai <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
> Is there any way to have Hibernate auto generate the schema if it hasn't
> already been defined? (The entities are POJOs with annotations).
>
> Is this done through the tapestry-hibernate package? Through the
> hibernate.cfg.xml? Maven?
>
> Sorry if this is off topic. If anyone can point me in the right
direction,
> that would be great.
>
>
>
>
> --
> Peter Beshai
>
> CS 134 Tutor
> University of Waterloo
>




--
Peter Beshai

CS 134 Tutor
University of Waterloo

Reply via email to