Java Hibernate Mapping Exception! (Could not determine type for: java.util.Map)

前端 未结 5 1142
[愿得一人]
[愿得一人] 2021-01-18 14:00

I have made a class with name of Movie with folowing fields:

    @Id
@GeneratedValue
private Long id;
private String name;
@ElementCollection(targetClass = S         


        
5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-18 14:32

    Aah I see, its a . I dont think you can map a primitive unless you are using latest jar. https://forum.hibernate.org/viewtopic.php?t=955308. Check that link. Could you make a class called as Properties with key and value and then use it? I had a similar problem and I had to use that approach.

提交回复
热议问题