Hello sufyan All depends on what is getting loaded. If it is annotated classes, yes, you need a hibernate.cfg.xml
If it is hbm.xml and it's part of your current classpath, the plugin can automatically loaded without the need to specify what classes. Also you can define the datasource settings in the database.properties file as specified here: http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/componentproperties.html Regards Johann reyes On 7/6/07, Sufyan Arif <[EMAIL PROTECTED]> wrote:
Hi, We also have to duplicate the information in the hibernate.cfg.xml file in order to generate the ddl. I'd be interested to know how you manage to avoid having one? For e.g. how does the hibernate3-maven-plugin know which domain objects to generate the ddl for? Also where do you define the data source settings? thanks Sufyan On Friday 06 July 2007 13:37:15 animedj wrote: > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
