JPA column with incorrect underscore

后端 未结 4 507
盖世英雄少女心
盖世英雄少女心 2020-12-30 20:16

I use JPA for database access and annotated every column with the correct name. Now if I execute a query (e.g. findAll()) it returns

Unknown co         


        
4条回答
  •  暖寄归人
    2020-12-30 20:58

    As described in spring-boot-jpa-column-name-annotation-ignored, your column name is being converted to snake case.

    Possible solutions:

    • Setup a Naming Strategy
    • Use lowercase column names in your annotations

提交回复
热议问题