Here's part of the log when I do -X:

[DEBUG] Configuring mojo 'org.codehaus.mojo:hibernate3-maven-plugin:2.0:hbm2ddl' --> [DEBUG] (f) componentProperties = {configurationfile=src/hbm2ddl/ggg-hbm2ddl.cfg.xml, export=false, implementation=jpa configuration, namingstrategy=ggg.MyNamingStrategy, outputfilename=ggg-hbm2ddl.
sql, persistenceunit=gggPersistenceUnit}
[DEBUG] (f) project = MavenProject: ggg:ggg-server:0.1-SNAPSHOT @ d:\projects\sb\ggg\ggg-server\pom.xml

[DEBUG] -- end configuration --
[INFO] [hibernate3:hbm2ddl]
15:58:52,566 INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.3.0.GA
15:58:52,581  INFO org.hibernate.cfg.Environment - Hibernate 3.2.5
15:58:52,581 INFO org.hibernate.cfg.Environment - hibernate.properties not found 15:58:52,581 INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib 15:58:52,581 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling 15:58:52,644 INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.3.1.GA 15:58:53,470 INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: ggg.MyPO


It just ignores my namingstrategy and always uses EJB3NamingStrategy.
If I supply a nonexisting.MyNamingStrategy it doesn't fail-fast, which again proves it ignores my namingstrategy.

What version of hibernate tools are you using? I am using the one that comes with hibernate3 version 2.0 of the plugin. I am also using the latest hibernate, hib-annotations, hib-entitymanager jars.

With kind regards,
Geoffrey De Smet

Mark Hobson schreef:
That syntax works for me, although I'm not using jpaconfiguration.
Can you post the log?

Mark

On 29/01/2008, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
I can't activate my customnamingstrategy when using hibernate3:hbm2ddl.
It alwas uses the DefaultNamingStrategy.

Here's my configuration:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>hibernate3-maven-plugin</artifactId>
  <version>2.0</version>
  <configuration>

<componentProperties>
  <implementation>jpaconfiguration</implementation>
  <configurationfile>src/hbm2ddl/my-hbm2ddl.cfg.xml</configurationfile>
  <outputfilename>my-hbm2ddl.sql</outputfilename>
  <export>false</export>
  <namingstrategy>ggg.MyNamingStrategy</namingstrategy>
  <persistenceunit>myPersistenceUnit</persistenceunit>
</componentProperties>

  </configuration>
</plugin>

Has anyone used the <namingstrategy> element succesfully?

According to the hibernate tool docs, it doesn't look like a normal
property on the exporter, which might cause it:

<configuration
   configurationfile="hibernate.cfg.xml"               (1)
   propertyfile="hibernate.properties"                 (2)
   entityresolver="EntityResolver classname"           (3)
   namingstrategy="NamingStrategy classname"           (4)
 >

--
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
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




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

   http://xircles.codehaus.org/manage_email

Reply via email to