Author: bleny Date: 2013-06-27 11:16:36 +0200 (Thu, 27 Jun 2013) New Revision: 256 Url: http://forge.codelutin.com/projects/franciaflex-magalie/repository/revisions... Log: better conf for sql generation Added: trunk/magalie-persistence/src/main/resources/hibernate-oracle.properties Modified: trunk/magalie-persistence/pom.xml trunk/pom.xml Modified: trunk/magalie-persistence/pom.xml =================================================================== --- trunk/magalie-persistence/pom.xml 2013-06-25 16:55:12 UTC (rev 255) +++ trunk/magalie-persistence/pom.xml 2013-06-27 09:16:36 UTC (rev 256) @@ -144,7 +144,8 @@ </goals> <configuration> <type>CREATE</type> - <hibernateDialect>org.hibernate.dialect.Oracle10gDialect</hibernateDialect> + <hibernateProperties>${maven.src.dir}/main/resources/hibernate-oracle.properties</hibernateProperties> + <hibernateDialect>com.franciaflex.magalie.persistence.MagalieOracleHibernateDialect</hibernateDialect> <outputFile>${project.build.directory}/generated-sources/magalie-create-oracle.sql</outputFile> </configuration> </execution> @@ -155,32 +156,11 @@ </goals> <configuration> <type>DROP</type> - <hibernateDialect>org.hibernate.dialect.Oracle10gDialect</hibernateDialect> + <hibernateProperties>${maven.src.dir}/main/resources/hibernate-oracle.properties</hibernateProperties> + <hibernateDialect>com.franciaflex.magalie.persistence.MagalieOracleHibernateDialect</hibernateDialect> <outputFile>${project.build.directory}/generated-sources/magalie-drop-oracle.sql</outputFile> </configuration> </execution> - <execution> - <id>executionCreateMysql</id> - <goals> - <goal>export</goal> - </goals> - <configuration> - <type>CREATE</type> - <hibernateDialect>org.hibernate.dialect.MySQLDialect</hibernateDialect> - <outputFile>${project.build.directory}/generated-sources/magalie-create-mysql.sql</outputFile> - </configuration> - </execution> - <execution> - <id>executionDropMysql</id> - <goals> - <goal>export</goal> - </goals> - <configuration> - <type>DROP</type> - <hibernateDialect>org.hibernate.dialect.MySQLDialect</hibernateDialect> - <outputFile>${project.build.directory}/generated-sources/magalie-drop-mysql.sql</outputFile> - </configuration> - </execution> </executions> <configuration> <target>SCRIPT</target> Added: trunk/magalie-persistence/src/main/resources/hibernate-oracle.properties =================================================================== --- trunk/magalie-persistence/src/main/resources/hibernate-oracle.properties (rev 0) +++ trunk/magalie-persistence/src/main/resources/hibernate-oracle.properties 2013-06-27 09:16:36 UTC (rev 256) @@ -0,0 +1 @@ +hibernate.ejb.naming_strategy=org.nuiton.jpa.hibernate.OracleCompliantImprovedNamingStrategy Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2013-06-25 16:55:12 UTC (rev 255) +++ trunk/pom.xml 2013-06-27 09:16:36 UTC (rev 256) @@ -345,6 +345,7 @@ <plugin> <groupId>de.juplo</groupId> <artifactId>hibernate4-maven-plugin</artifactId> + <!-- FIXME bleny 27/06/2013 use at least 1.0.2 to generate sql according to naming strategy --> <version>1.0.1</version> </plugin>