Native SQL throwing Invalid Column Name Exception

前端 未结 3 2030
借酒劲吻你
借酒劲吻你 2021-01-12 01:31

I am using Hibernate 3.2.5 for my application.

I have a Dept table and an Employees table.

Dept.java



        
3条回答
  •  攒了一身酷
    2021-01-12 02:01

    I had the same issue.

    The reason is my column name in annotation is not correct.

    @Column(name = "CUSTOMER_NAME", length = 200)
    

    should be changed to

    @Column(name = "CUST_NM", length = 200)
    

提交回复
热议问题