错误(一)
来源:互联网 发布:JavaScript 中的注释 编辑:程序博客网 时间:2024/06/05 04:14
1.
org.hibernate.QueryException: could not resolve property: carNumberID of: com.web.pojo.CarInfoPojo [from com.web.pojo.TMaintainItems as mi,com.web.pojo.TMaintain as m,com.web.pojo.TOperation as o,com.web.pojo.CarInfoPojo as c where c.carNumberID=o.carNumberID and o.operationID=m.operationID and m.maintainID=mi.maintainID and c.carNumberId ='粤AJ055Z']
表示你查询的时候有个属性carNumberID跟对象(com.web.pojo.CarInfoPojo)的字段不符合,没有完全匹配上。
2.
org.hibernate.QueryException: could not resolve property: maintainID of: com.web.pojo.TMaintain [from com.web.pojo.TMaintainItems as mi,com.web.pojo.TMaintain as m,com.web.pojo.TOperation as o,com.web.pojo.CarInfoPojo as c where c.carNumberID=o.carNumberID and o.operationID=m.operationID and m.maintainID=mi.maintainID and c.carNumberId ='粤AJ055Z']
以上特别注意的地方:mi.maintain不能写成mi.maintainID
public class TMaintainItems implements java.io.Serializable {
// Fields
private Long maintainItemsIndex;
private TMaintain maintain; ----这里!!!
private String serviceId;
private String serviceName;
private String itemChargeType;
private String itemState;
org.hibernate.QueryException: could not resolve property: carNumberID of: com.web.pojo.CarInfoPojo [from com.web.pojo.TMaintainItems as mi,com.web.pojo.TMaintain as m,com.web.pojo.TOperation as o,com.web.pojo.CarInfoPojo as c where c.carNumberID=o.carNumberID and o.operationID=m.operationID and m.maintainID=mi.maintainID and c.carNumberId ='粤AJ055Z']
表示你查询的时候有个属性carNumberID跟对象(com.web.pojo.CarInfoPojo)的字段不符合,没有完全匹配上。
2.
org.hibernate.QueryException: could not resolve property: maintainID of: com.web.pojo.TMaintain [from com.web.pojo.TMaintainItems as mi,com.web.pojo.TMaintain as m,com.web.pojo.TOperation as o,com.web.pojo.CarInfoPojo as c where c.carNumberID=o.carNumberID and o.operationID=m.operationID and m.maintainID=mi.maintainID and c.carNumberId ='粤AJ055Z']
以上特别注意的地方:mi.maintain不能写成mi.maintainID
public class TMaintainItems implements java.io.Serializable {
// Fields
private Long maintainItemsIndex;
private TMaintain maintain; ----这里!!!
private String serviceId;
private String serviceName;
private String itemChargeType;
private String itemState;
0 0
- 异常错误(一)
- OralceTNS错误 (一)
- 错误(一)
- 错误记录(一)
- 错误收集(一)
- 机房错误(一)
- 未知错误(一)
- Gradle错误(一)
- 错误整理集(一)
- Android常见错误(一)
- iOS 错误处理 (一)
- 框架常见错误(一)
- python错误小结(一)
- FindBugs找到错误(一)
- vs编译错误(一)
- Eclipse错误集(一)
- OPENCV常见错误(一)
- C++ 迭代器错误(一)
- 不能优盘引导的服务器安装ubuntu desktop
- 【amazing cocos2d-x 3.0之一】coocs2d-x 3.0alpha1安装环境
- 二调的Excel,MDB报表一览
- 今天天气不错呀~
- 创建一个简单的WCF程序
- 错误(一)
- KFS 0.5发布说明
- drop cache
- 网页变模糊js代码
- iOS开发之工具篇-20个可以帮你简化移动app开发流程的工具
- LeetCode:Linked List Cycle II
- cocos2d-x 2.0+eclipse+winxp配置
- 关于程序员开发效率的悖论
- 话务量计算编程实现(MATLAB)