could not determine type for java.util.set
来源:互联网 发布:如何购买国外域名 编辑:程序博客网 时间:2024/04/28 22:41
出现这个问题竟然是因为我的 bean.hbm.xml 配置文件中kehu_items字段写重复了,写了两个,因为字段太多了没看出来,纠结了好久 ,终于解决了
<property name="kehu_items"/>
<set name="kehu_items" table="person_kehuItem" lazy="false">
<key column="bianhao"/>
<many-to-many class="com.bean.Kehu_item" column="id"/>
</set>
[2014-05-16 14:03:46,768] ERROR com.util.HibernateSessionFactory.http-bio-8080-exec-3(HibernateSessionFactory.java:68) - Could not determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(kehu_items)]
org.hibernate.MappingException: Could not determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(kehu_items)]at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:395)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java:984)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1169)
at com.util.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:66)
at com.util.HibernateSessionFactory.getSession(HibernateSessionFactory.java:49)
at com.DAO.PersonDAOImpl.getPages(PersonDAOImpl.java:23)
at com.action.UserManageAction.login(UserManageAction.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:30)
at
0 0
- hibernate错误:Could not determine type for: java.util.Set
- could not determine type for java.util.set
- org.hibernate.MappingException: Could not determine type for: java.util.Set
- 实体类注解错误:Could not determine type for: java.util.Set
- Hibernate异常Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Set
- 实体类注解错误:Could not determine type for: java.util.Set
- 实体类注解错误:Could not determine type for: java.util.Set
- Hibernat org.hibernate.MappingException: Could not determine type for: java.util.Set
- hibernate实体类注解错误Could not determine type for: java.util.Set
- org.hibernate.MappingException: Could not determine type for: java.util.Set
- Hibernate实体类注解错误- Could not determine type for: java.util.Set,at table:
- 今天遇到 Could not determine type for: java.util.List
- Could not determine type for: java.util.List异常
- 今天遇到 Could not determine type for: java.util.List
- Could not determine type for: java.util.String, at table:
- org.hibernate.MappingException: Could not determine type for: java.util.List, at table: user, for...
- Hibeinate: Could not determine type for: java.util.List, at table: address_inf, for columns: [org.hi
- Could not determine type for: java.util.Boolean, at table:出错的处理
- GCD使用_以后自己用
- 2014年百度之星程序设计大赛 - 资格赛 第四题 Labyrinth
- LeetCode: Valid Parentheses [020]
- Sql Server 2008数据库的导出与备份
- A Quick Guide to Sublime Text
- could not determine type for java.util.set
- 外企的福利真比国企差吗?
- jQuery图片轮播(焦点图)插件
- [Effective C++] 条款01:视C++为一个语言联邦
- Spring配置SessionFactory
- 用SlickEdit 编译 MDK4 项目
- 字符编码问题
- DxO Optics Pro 9.1.5 builder 1919 汉化版
- 二维元胞自动机扩展