Property 'subname' not found on type org.hibernate.collection.PersistentSet下面是我在网页上翻译出来的,但是我不太明白属性'subname'不存在于类型org.hibernate.collection.PersistentSet

解决方案 »

  1.   

    也就是说你在 EL 表达式或者其他什么地方使用了这个对象的 getSubname()。问题可能出在:你用 Hibernate 查询后获得的是个 Set,而你在页面上直接使用这个 set.subname 了,你需要将这个 Set 迭代后再使用 Set 中的元素.subname
      

  2.   

    检查一下数据库,pojo和hbm文件里是不是都存在subname
      

  3.   

    问问题只问半截,只能这样猜测了。提问的智慧:http://community.csdn.net/IndexPage/SmartQuestion.aspx
      

  4.   

    应该是配置文件没有配置“subname”