“Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements” SpringBoot公共类类别实现可序列化的{ private Long idCat; @OneToMany(mappedBy = "categoriesD", fetch = FetchType.LAZ
GenerationType.IDENTITY) return id;public void setId(Long id) {}
Caused by: org.hibernate.AnnotationException: Illegal attempt to map a non collection as a @OneToMany