Hi guys,
I'm optimising my database fields in my hibernate mappings. Im trying to set the lengths of the columns.
It works fine with my
Code:
String
properties :
<property name="telh" length="35"/> is generated as follows in
mysql:
telh - varchar(35)
which is correct.
But I have problems wit java type
Code:
long
.
<property name="cent" length="13"/> is genrated always as:
cent - bigint(20).
I cant seem to change the length.
As you can follow, Im using
Code:
<property name="hbm2ddl.auto">create</property>
to generate my database.
Any help would be much appreciated.
Thanks,
Gawie