Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
HibernateTools-3.1.0.beta1
Mapping:
<hibernate-mapping package="gti.domain.generated">
<class name="gti.domain.Sjoerd" abstract="true">
<meta attribute="scope-class">public abstract</meta>
<meta attribute="extends">gti.domain.DbObject</meta>
<meta attribute="generated-class">gti.domain.generated.Sjoerd</meta>
<id name="id" type="java.lang.Long">
<generator class="native" />
</id>
<property name="username" type="string"/>
<set name="n" inverse="true">
<key column="N"/>
<one-to-many class="gti.domain.N"/>
</set>
</class>
<class name="gti.domain.N" abstract="true">
<meta attribute="scope-class">public abstract</meta>
<meta attribute="extends">gti.domain.DbObject</meta>
<meta attribute="generated-class">gti.domain.generated.N</meta>
<id name="id" type="java.lang.Long">
<generator class="native" />
</id>
<property name="jaap" type="string"/>
<many-to-one class="gti.domain.Sjoerd" name="n"/>
</class>
</hibernate-mapping>
ANT:
I use ANT
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="hibernate.ant.classpath"/>
<hibernatetool>
<configuration configurationfile="${mapping}/hibernate.cfg.xml">
<fileset dir="${mapping}">
<include name="**/*.hbm.xml"/>
</fileset>
</configuration>
<hbm2java destdir="${src}"/>
</hibernatetool>
Problem:
When I use hbm2java in hibernate 3 then the genereted import statements does not have a carriage return, it only has a linefeed on windows.
All the other lines have a carriage return linefeed.
How does that work ?
Do I have to confiugre that, or is it a bug?