could not resolve property: name of:,resolveproperty
spring date jpa 错误:could not resolve property: name of:
在写 查询的时候,把实体类的属性写错了,即 sql 语句中字段与实体类中属性没有对应,造成无法解析。
@Query("from Product p where p.id.productName like :name")
List<Product> getInfoByName(@Param("name")String name,Pageable pageable);其中,把 id.productName 写成 name了
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。