Can't NUMBER type fields be nullable fields in Oracle
In mapping i gave the type as int for a attribute of a class
In domain it is int
In the Oracle DB , the table is a NUMBER column (nullable). The is null in this column for a few records due to which i start getting the following exception
Quote:
Exception : org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of src.Person.setLastUpdatedUserId
For date or string type of attributes (fields) even if data is null i do not get exception.
Can any body please give me a workaround so that the field in the DB remains nullable and at the same time i would be able to retrieve and save the data pertaining to the entity.
It is an immediate need. Please help.
Regards
Ahmad[/quote]