zoukankan      html  css  js  c++  java
  • 错误:Could not find a getter for CreatTime in class

     org.hibernate.PropertyNotFoundException: Could not find a getter for CreatTime in class org.com.xk.hdjy.proj.nifty.domain.T_KITINFO
     at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:316)
     at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:310)
     at org.hibernate.mapping.Property.getGetter(Property.java:321)
     at org.hibernate.tuple.entity.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:436)
     at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:200)
     at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:82)
     
     原因:*.hbm.xml文件中的字段和domain中的字段不一致.
     方法:检查*.hbm.xml文件中的property属性和domain中的字段是否一致

  • 相关阅读:
    struts2简介
    项目整合SpringDataRedis
    SpringDataRedis入门Demo
    包管理-rpm
    文件查找与压缩
    N042第一周
    Shell
    Linux下终端字体颜色设置方法
    文本处理工具作业
    正则表达式
  • 原文地址:https://www.cnblogs.com/huike/p/7507159.html
Copyright © 2011-2022 走看看