Hello Manos

This is exactly to handle that case. You are getting that error because it
automatically adds those files the plugin, and also you are adding again
those files through hibernate.cfg.xml

With this change that won't happen anymore

Regards

Johann Reyes

-----Original Message-----
From: Manos Batsis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 05, 2007 11:32 AM
To: [email protected]
Subject: Re: [mojo-user] [Hibernate3-maven-plugin] scan-jars / scan-classes





Johann Reyes wrote:
> Right now these two flags exist for the annotations configuration part 
> of hibernate. I would like to make it standard, and that means implement 
> it in the configuration part of the plugin.

Would that include the case where hibernate mappings are used to feed 
hbm2java? Currently if i add the mappings in hibernate.cfg.xml i get 
duplicate mapping errors and if i remove them java code is simply not 
generated.

The ideal for my case would be to point an hbm directory to the plugin 
where the mappings can be found and added to the given hibernate.cfg.xml.


Another issue i have with hibernate.cfg.xml: it uses a datasource to 
take advantage of container connection pooling and hbm2ddl bombs as it 
cannot find the JNDI context. Is there a way to pass JDBC connection 
information to override the datasource during the build?


Manos

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

    http://xircles.codehaus.org/manage_email




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

    http://xircles.codehaus.org/manage_email

Reply via email to