getting a PropertyAccessException?

org.hibernate.PropertyAccessException: Null value was assigned to a property of
primitive type setter of XXXXXX

Hibernate internally treats every attribute in VO as OBJECT.

Instead of using primitives directly use the respective wrapper class objects.

example:
instead of using
private int versionNo;
in your VO, use
private java.lang.Integer versionNo;





About this entry