[ 
http://jira.codehaus.org/browse/MHIBERNATE-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122565
 ] 

Geoffrey De Smet commented on MHIBERNATE-71:
--------------------------------------------

Here you go :)

<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>hibernate3-maven-plugin</artifactId>
        <configuration>
          <componentProperties>
            <implementation>jpaconfiguration </implementation>
            
<configurationfile>src/hbm2ddl/bba-hbm2ddl.cfg.xml</configurationfile>
            <outputfilename>bba-hbm2ddl.sql</outputfilename>
            <ejb3>true</ejb3>
            <export>false</export>
            <scan-classes>false</scan-classes>
            <!-- Keep in sync with bba-persistence.xml -->
            
<namingstrategy>be.schaubroeck.util.persistence.hibernate.AtlasNamingStrategy</namingstrategy>
            <!-- Keep in sync with META-INF/persistence.xml -->
            <persistenceunit>bbaPersistenceUnit</persistenceunit>
          </componentProperties>
        </configuration>
      </plugin>

Could be the use of <configurationfile> cause the ignoring?
I need that because I can't define the dialect in META-INF/persistence.xml 
because it's injected in spring's entitymanagerfactory with property 
placeholders.

> 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


Reply via email to