I am using dropwizard which internally uses JPA annotatons and hibernate to map objects. One of the object has a map field which I have defined as
@Column
@ElementCollection(targetClass=String.class)
Map<String, String> routes;
I keep seeing the following error
org.hibernate.MappingException: Could not determine type for: java.util.Map, at table
I have tried a number of things mentioned on SO
Added the @MapKey
annotation
Added annotations on getters
changed Map to HashMap nothing seems to fix it.