org.hibernate.MappingException: Could not determine type for: java.util.Set [duplicate]

I got the same problem with @ManyToOne column. It was solved… in stupid way. I had all other annotations for public getter methods, because they were overridden from parent class. But last field was annotated for private variable like in all other classes in my project. So I got the same MappingException without the reason.

Solution: I placed all annotations at public getter methods. I suppose, Hibernate can’t handle cases, when annotations for private fields and public getters are mixed in one class.

Leave a Comment