ManyToOne and Column Conflict [closed]



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;

Answer

Use @JoinColumn instead of @Column.



Source: stackoverflow