Joined: Mon Dec 06, 2004 5:40 pm Posts: 5
|
It seems that hbm2java is ignoring my config file. The ant task is:
<target name="hbm2java" description="Generate .java from .hbm files.">
<hbm2java output="${build.gen-src.dir}" config="${basedir}/hib-config.xml">
<fileset dir="${build.gen-src.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</hbm2java>
</target>
The config file it references is:
<codegen>
<meta attribute="implements">org.data.ValueObject</meta>
<generate renderer="net.sf.hibernate.tool.hbm2java.BasicRenderer"/>
</codegen>
When I look at the code that is generated though it never has the implements with my changes:
public class Program implements Serializable {...
I know that it is reading the file because I have changed this line:
<generate renderer="net.sf.hibernate.tool.hbm2java.BasicRenderer"/>
to
<generate renderer="net.sf.hibernate.tool.hbm2java.BasicRenderer.Foo"/>
and it complains that it can't find my class.
Should I be doing something different to have it pickup the interface I want it to implement?
I am using Hibernate 2.1 and the hibernate-tools that came with it.
Thanks,
Bryan
Hibernate version: 2.1.7
Mapping documents:none
Code between sessionFactory.openSession() and session.close():none
Full stack trace of any exception that occurs:none
Name and version of the database you are using:Oracle 9.2.0.1.0
The generated SQL (show_sql=true):none
Debug level Hibernate log excerpt:none
|
|