Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
I have struggled for days getting a java.lang.Double filed mapped to oracle NUMBER type with precision 4 and scale 1.
I tried this:
<property name="validityAgreePercent" type="java.lang.Double">
<column name="ValidityAgreePercent" sql-type="NUMBER(4,1)" />
</property>
and
<property name="validityAgreePercent" type="double">
<column name="ValidityAgreePercent" sql-type="NUMBER(4,1)" />
</property>
and
<property name="validityAgreePercent" type="double">
<column name="ValidityAgreePercent" sql-type="NUMBER precision="4" and scale="1 " />
And over two dozen combinations.
None worked.
Does this validation have anything to do with jdbc driver?
My dialect is Oracle9Dialect.
I even tried big_decimal. It does not work either.
The same mapping works for sql-server where we have decimal in the database as a type.
Please help. I don't see any example.
I am bamming the wall right now.
</property>