I try the following mapping
@ElementCollection
private Map<String, Double> doubleValues;
But when I generate my schema from this (using mvn hibernate3:hbm2ddl), I get the following errors:
org.hibernate.MappingException: Could not determine type for: java.util.Map, at table: ImagerAnalysisResult, for columns: [org.hibernate.mapping.Column(doubleValues)]
I've tried adding column and type information to this, but I keep getting the same error. Also, I don't think that information should be given as hibernate should use the generic declaration (according to How to map a Map<String,Double>).
I'm using hibernate version 3.6.4.Final and I've tried other versions
Any suggestions? Thanks.
Edit: it appears that the maven hibernate plugin is two years old and depends on an older hibernate version... why is this plugin not being maintained?
Edit: named field "doubleValues" to make sure there's no reserved-name-issue.