Hello I am very new to the hibernate world and seem to have hit a roadblock. The object I need to store has a hashmap in it.
private Map
@org.hibernate.annotations.Type(
type = "org.hibernate.type.SerializableToBlobType",
parameters = { @Parameter( name = "classname", value = "java.util.HashMap" ) }
)
public Map getModelData() {
return modelData;
}
Or even just this will work in most cases (distributed caching might be a problem):
@org.hibernate.annotations.Type( type = "org.hibernate.type.SerializableType" )
public Map getModelData() {
return modelData;
}