The problem is simple, i have a property in my hbm.xml file that defines a float atribute:
Code:
<property name="number">
<column name="NUMBER"></column>
<type name="float"></type>
</property>
When i generate the domain code with HBTools, it generates an atribute with the primitive type float
Code:
private float number;
However, i want it to generate an Float object atribute. If i set the type "Float" in hbm.xml instead of float
Code:
<property name="number">
<column name="NUMBER"></column>
<type name="Float"></type>
</property>
it generates a private Float number, but hibernate doesnt recognizes a type "Float", only "float".
I think this is either a bug in HBTools or in Hibernate. Does someone have a suggestion on this?
Thanks