Caused by: org.hibernate.MappingException: collection foreign key mapping has wrong number of column

模型创建错误,这个是由于继承时没注意到已经有了

 @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private Long id;


id被声明了两遍。


你可能感兴趣的:(Caused by: org.hibernate.MappingException: collection foreign key mapping has wrong number of column)