Mukesh Kumar Sahoo
Mukesh Kumar Sahoo

Reputation: 1

I am getting a error in spring jpa column Part_Category not found exception can some body help me

@Query(value=" select DISTINCT sb.Failed_Part_Number,sb.Replacement_Part_Number,sb.Part_Description FROM tbl_servicebom sb WHERE sb.Part_Category=:partcatagory", nativeQuery=true)

List findBySpaModel(String partcatagory);

Upvotes: 0

Views: 40

Answers (1)

Muthukumaran G
Muthukumaran G

Reputation: 95

One thing that caused this issue could be the mismatch in variable name, check sb.Part_Category if the same name exists in your entity if exists then check for spelling and case sensitivity.

Upvotes: 0

Related Questions