Hibernate version:Hibernate Core 3.2.5.ga, Hibernate Annotations 3.3.0 GA
Name and version of the database you are using: Oracle 10gR2
I have an Entity with an int field that has a min/max range of 0 to 360. As a result, I added @Range. Upon DDL generation, I noticed that it uses Number(10,0) because it is an int. So I added @Column(precision=3,scale=0) so that a Number(3,0) would be generated. Alas, I still get a Number(10,0).
Is that right?
I am trying to avoid using columnDefinition="Number(3,0)" because then it becomes Oracle specific. Why can't precision work for int fields too?
Thanks.
|