Please Help!! I have the following lines in my Employee Entity:
@ElementCollection
@Column(name="NICKNAME")
private Collection<
String> nickNames;
I keep getting the persistenceException : Could not determine type for: java.util.Collection, for columns : [org.hibernate.mapping.Column(NICKNAME)].
I use field access strategy for all my other attributes within the same entity. (I used different relationships in this entity. Such as @ManyToOne, @OneToOne, and so on. They all work fine if the above fragment is omitted)
Any suggestion to make @ElementCollection works?