Hey,

 

Little help needed with xdoclet plugin.

      

1)    hibernatecf doesn’t add the mappingsfiles to the configuration file.

The mappings files are in the resource folder. Why?

2)    The schemaexport tag doesn’t seem to work. Normal ?

3)    How can I execute the generated sql file on my database?

      

<configuration>

              <tasks>

                <mkdir
dir="${project.build.directory}/generated-sources/hibernate/cfg" />

                  <

                <hibernatedoclet 

 
destDir="${project.build.directory}/generated-sources/hibernate/cfg">

                  <fileset dir="src/main/resources" includes="**/*.hbm.xml"
/>

                  <hibernatecfg

                        version="3.0"

                        dialect="org.hibernate.dialect.MySQLDialect"

                        driver="com.mysql.jdbc.Driver"

                        jdbcUrl="${db.url}"

                        username="${db.username}"

                        password="${db.password}"

                        >

                  </hibernatecfg>

                  <schemaexport

                          quiet="yes" text="true" drop="false" delimiter=";"

 
output="${project.build.directory}/generated-sources/installation.sql">

                          <fileset dir="src/main/resources"
includes="**/*.hbm.xml"/>

                        </schemaexport>

                </hibernatedoclet>

              </tasks>

        </configuration>


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: 18/10/2006
 

Reply via email to