Looks like the export works when you are using create and not update. however
unable to change the location of the outputted sql/dll (going to
target/hibernate3/sql).

Plan on using export=false and use diffs to manage the production database. 
Anyone go this route have any good tips?

Good luck all.


mettamara wrote:
> 
> My Hibernate plugin is not outputting the DB creation SQL (using MySQL 5). 
> Below is the pom and profiles section. Anyone had any similar experiences?
> 
> -------------------------------------------            
> <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>hibernate3-maven-plugin</artifactId>
>                 <version>2.0-alpha-2</version>
>                 <configuration>
>                     <components>
>                         <component>
>                             <name>hbm2ddl</name>
>                            
> <implementation>annotationconfiguration</implementation>
>                             <!-- Use 'jpaconfiguration' if your going the
> -Ddao.framework=jpa-hibernate route. -->
>                            
> <!--<implementation>jpaconfiguration</implementation>-->
>                         </component>
>                     </components>
>                     <componentProperties>
>                       <outputfilename>DB.sql</outputfilename>
>                         <drop>${hbm2ddl.drop}</drop>
>                         <create>${hbm2ddl.create}</create>
>                         <update>${hbm2ddl.update}</update>
>                         <jdk5>true</jdk5>
>                        
> <propertyfile>target/classes/jdbc.properties</propertyfile>
>                         <skip>${maven.test.skip}</skip>
>                     </componentProperties>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <phase>process-test-resources</phase>
>                         <goals>
>                             <goal>hbm2ddl</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>                 <dependencies>
>                     <dependency>
>                         <groupId>${jdbc.groupId}</groupId>
>                         <artifactId>${jdbc.artifactId}</artifactId>
>                         <version>${jdbc.version}</version>
>                     </dependency>
>                 </dependencies>
>             </plugin>
> ----------------------------------
> 
>                       <hbm2ddl.drop>true</hbm2ddl.drop>
>                       <hbm2ddl.create>true</hbm2ddl.create>
>                       <hbm2ddl.update>true</hbm2ddl.update>
>                       <maven.test.skip>false</maven.test.skip>
>                       
> <dbunit.loadfile>src/test/resources/sample-data.xml</dbunit.loadfile>
> 

-- 
View this message in context: 
http://www.nabble.com/hbm2ddl-not-outputing-generated-SQL-tp15539023s2369p15670637.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to