14 Star 148 Fork 116

YuePeng / erupt-example

 / 详情

示例【文章管理】查询后报错could not resolve property: top of: com.example.demo.model.Article

已完成
创建于  
2022-01-25 16:02

org.hibernate.QueryException: could not resolve property: top of: com.example.demo.model.Article [select new map(Article.pic as pic,Article.content2 as content2,Article.content as content,Article.topUp as topUp,Article.title as title,Article.remark as remark,Article.id as id,Article.publish as publish) from com.example.demo.model.Article as Article where 1 = 1 order by Article.top desc]; nested exception is java.lang.IllegalArgumentException: org.hibernate.QueryException: could not resolve property: top of: com.example.demo.model.Article [select new map(Article.pic as pic,Article.content2 as content2,Article.content as content,Article.topUp as topUp,Article.title as title,Article.remark as remark,Article.id as id,Article.publish as publish) from com.example.demo.model.Article as Article where 1 = 1 order by Article.top desc]

评论 (1)

hotcoffie 创建了任务

实例代码有BUG,更新到最新版本即可

YuePeng 任务状态从 待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
1242047 erupt 1631245308
Java
1
https://gitee.com/erupt/erupt-example.git
git@gitee.com:erupt/erupt-example.git
erupt
erupt-example
erupt-example

搜索帮助