sorry for this post, just read your last email :)



Kristian Marinkovic <[EMAIL PROTECTED]> 
25.07.2007 08:44
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
"Tapestry users" <users@tapestry.apache.org>
Kopie

Thema
Re: T5 - tapestry-hibernate - Auto generate schema/tables?






usually it is sufficient to add this line to your hibernate.cfg.cml

 <!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">update</property

please look into the hibernate docs 

g,
kris




Jacob Bergoo <[EMAIL PROTECTED]> 
24.07.2007 21:29
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
users@tapestry.apache.org
Kopie

Thema
Re: T5 - tapestry-hibernate - Auto generate schema/tables?







Hi Peter,
Take a look at the Hibernate Tools project. We are using it to do reverse
engineering, so based from tables in our oracle database we are generating
hibernate mappingfiles, pojos, Dao Interfaces, Dao Implementations, Dao 
Test
Classes (simple tests), ApplicationContext file for our persistence beans
(We are using Spring framework) etc... but this also works in the opposite
direction so you should be able to generate the database schema from your
pojos using annotation..

Hopes it helps,
Jacob






Peter Beshai-2 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5---tapestry-hibernate---Auto-generate-schema-tables--tf4137646.html#a11770206


Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to