We're updating the issue view to help you get more done. 

PropertyAccessException: could not set a field value by reflection setter of... when using AttributeConverter for enum

Description

I was using Hibernate 4.3.5 when I ran into an issue with AtttributeConverter#convertToEntityAttribute(Integer dbData) where dbData was null for Enum datatype. I am not sure why it was null because in database table the all records had not null data. I found issue which seems similar, so I updated to version 4.3.10 and tested again and now I am getting,... PropertyAccessException: could not set a field value by reflection setter of... when using AttributeConverter for another enum, and this time I checked the dbData parameter was not null. Please see attached exception.

Environment

JDK 1.8.0_45, Hibernate 4.3.10

Status

Assignee

Gail Badner

Reporter

j

Affects versions

4.3.10
4.3.11

Priority

Major