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

前端 未结 5 1190
[愿得一人]
[愿得一人] 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:41

    Shouldn't properties just be a List type?

    It sounds like Hibernates confusion is the same as mine which is, why is Properies a Map instead of a list? What exactly are you trying to do there?

提交回复
热议问题