[
http://jira.codehaus.org/browse/MHIBERNATE-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122321
]
Johann Reyes commented on MHIBERNATE-71:
----------------------------------------
Yes, i get this in the log:
[INFO] Using as namingstrategy org.hibernate.cfg.ImprovedNamingStrategy
And ignore the hibernate.ejb.naming_strategy comment, it was wrong, I was high
or something when i said that :D
And if it resolves the class, the naming strategy is set up through the
setNamingStrategy as seen here:
http://fisheye.codehaus.org/browse/mojo/trunk/mojo/hibernate3/maven-hibernate3-api/src/main/java/org/codehaus/mojo/hibernate3/configuration/AbstractComponentConfiguration.java?r=5323#l66
So if you can post an example of your project with the custom strategy to see
what's wrong, I will be able to tell you better why it's failing,
> jpaconfiguration does not support namingstrategy
> ------------------------------------------------
>
> Key: MHIBERNATE-71
> URL: http://jira.codehaus.org/browse/MHIBERNATE-71
> Project: Maven 2.x Hibernate Plugin
> Issue Type: Improvement
> Components: hbm2ddl
> Affects Versions: 2.0
> Reporter: Geoffrey De Smet
> Assignee: Johann Reyes
> Priority: Critical
> Fix For: 2.1
>
>
> For annotationconfiguration it works out the box, because hibernate-tools
> supports that kind of property there.
> For jpaconfiguration it doesn't.
> The JPAComponentConfiguration class should include something like this:
> String namingstrategy = getExporterMojo().getComponentProperty(
> "namingstrategy " );
> if (namingstrategy != null) {
> ejb3cfg.setNamingStrategy(Class.forName(namingstrategy).newInstance());
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email