[ 
http://jira.codehaus.org/browse/MHIBERNATE-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Johann Reyes closed MHIBERNATE-96.
----------------------------------

    Resolution: Fixed

Version 3 of the plugin supports all options of the original Ant task.

> configuration about import file
> -------------------------------
>
>                 Key: MHIBERNATE-96
>                 URL: http://jira.codehaus.org/browse/MHIBERNATE-96
>             Project: Maven 2.x Hibernate Plugin
>          Issue Type: Improvement
>          Components: hbm2ddl
>    Affects Versions: 2.2
>         Environment: all
>            Reporter: LeeGowing
>            Assignee: Johann Reyes
>            Priority: Minor
>             Fix For: 3.0
>
>
> The SchemaExport has a setImportFile(String name) method to configure the 
> import file name.
> I think Hbm2DDLExporterMojo should do it too.
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>hibernate3-maven-plugin</artifactId>
> <version>2.2</version>
> <configuration>
>     <components>
>         <component>
>             <name>hbm2ddl</name>
>             <implementation>configuration</implementation>
>         </component>
>     </components>
>     <componentProperties>
>         <importfile>/another-import-file.sql</importfile>                     
>                     <!-- Added  -->
>         <outputfilename>create-tables.sql</outputfilename>
>     </componentProperties>
> </configuration>
> </plugin>
> In Hbm2DDLExporterMojo, add the following line before executing export should 
> do the trick.
> String importFile = getComponentProperty("importfile");
> if (importFile != null) {
>     export.setImportFile(importFile);
> }

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