error : @Column(s) not allowed on a @ManyToOne property: com.spring.mysql.test.api.model.Lancamentos.categoria
@ManyToOne @Column(name="id_categoria") private Categoria categoria;
Advertisement
Answer
Use @JoinColumn instead of @Column.
error : @Column(s) not allowed on a @ManyToOne property: com.spring.mysql.test.api.model.Lancamentos.categoria
@ManyToOne @Column(name="id_categoria") private Categoria categoria;
Use @JoinColumn instead of @Column.