Hello Jonas But if the classes that you need to load are in your classpath, it should load it automatically and you shouldn't need a hibernate.cfg.xmlconfiguration file. But recommended is to have one.
Regards Johann Reyes On 7/4/07, David J. M. Karlsen <[EMAIL PROTECTED]> wrote:
Jonas Thurfors wrote: > I want to generate a DDL using Maven2, Spring2 and Hibernate3. > > I would like to use the maven-hibernate3-plugin with the goal > hibernate3:hbm2ddl, but I don't use the hibernate.cfg.xml file, > instead I'm configuring Hibernate with Spring's > LocalSessionFactoryBean. How do I get the hibernate3 plugin to use my > configuration? unfortunately you have to configure it twice - or "refactor" out your settings to hibernate.cfg.xml and point the spring configured localsession... to it. -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
