Hi everyone..
How can one persist a list of enums using hibernate..When I try to do so I get this error..
Caused by:
org.hibernate.MappingException: Could not determine type for: java.util.List, for columns: [org.hibernate.mapping.Column(exteriorFeatures)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:440)
......................
following is the line of code
List<ExteriorFeatures> exteriorFeatures = new ArrayList<ExteriorFeatures>();
and this is the enum definition
public enum ExteriorFeatures {
RESERVED_PARKING("Reserved Parking"),
.....
}
I am using spring and annotations.
|