Hello
Using hibernate 2.1.3 I am having a problem when running SchemaExportTask on any java class file with the the following tag or similar
I have tried this with files I have created and with examples I have copied and pasted from the net
If I use the example from the hibernate docs involving the cat from this url
http://www.hibernate.org/hib_docs/refer ... es-xdoclet
and I leave this tag
/**
* @hibernate.set
* lazy="true"
* order-by="BIRTH_DATE"
* @hibernate.collection-key
* column="PARENT_ID"
* @hibernate.collection-one-to-many
*/
I get this error
Schema text failed: java.lang.NullPointerException
If I remove the tag it works perfectly
It seems to be only with the @hibernate.set tag
Here is the relevant portion from my ant build.xml
<target name="schematodatabase" >
<taskdef name="schemaexport"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask">
<classpath>
<pathelement path="${obj-dir}"/>
<pathelement path="${etc-dir}"/>
<fileset dir="${jar-dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</taskdef>
<schemaexport
quiet="no"
text="yes"
drop="no"
delimiter=";"
output="${generated.home}/schema-export.sql">
<fileset dir="${generated.home}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
</target>
And here is my hibernate.properties
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.connection.url=jdbc\:postgresql\://mzrsync/jubilee
hibernate.connection.username=postgres
hibernate.connection.password=
hibernate.connection.pool_size=10
hibernate.dialect=net.sf.hibernate.dialect.PostgreSQLDialect
hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N'
hibernate.c3p0.minPoolSize=5
hibernate.c3p0.maxPoolSize=20
hibernate.c3p0.timeout=1800
hibernate.c3p0.max_statement=50
I have tried redownloading hibernate and xdoclet and everything I can think of. I have no log files to show you
Marcus