org.hibernate.MappingException: Could not determine type for:
来源:百度知道 编辑:UC知道 时间:2024/06/17 00:12:33
sen.com.model.Student, for columns: [org.hibernate.mapping.Column(student)]
上面包括标题是出的异常。
以下是Student.hbm.xml的<class>标签部分:
<class name="sen.com.model.Student" table="t_student">
<id name="id">
<generator class="native"/>
</id>
<property name="name"/>
<property name="sex"/>
<property name="idCode"/>
<property name="birthDay"/>
<property name="nativePlace"/>
<property name="address"/>
<property name="postalcode"/>
<property name="homeTel"/>
<property name="dorm"/>
<property name="accountNO"/>
<property name="cellPhoneNO"/>
<property name="qq"/>
<property name="email
上面包括标题是出的异常。
以下是Student.hbm.xml的<class>标签部分:
<class name="sen.com.model.Student" table="t_student">
<id name="id">
<generator class="native"/>
</id>
<property name="name"/>
<property name="sex"/>
<property name="idCode"/>
<property name="birthDay"/>
<property name="nativePlace"/>
<property name="address"/>
<property name="postalcode"/>
<property name="homeTel"/>
<property name="dorm"/>
<property name="accountNO"/>
<property name="cellPhoneNO"/>
<property name="qq"/>
<property name="email
这是你的Student.hbm.xml的完整文件吗?
如果是那么你的<class>标签没有结束呢!
</class>
不过如果是你复制掉了 就宁当别论。
Student中有一列没有映射,看你的属性是不是都映射到表的列了。
org.hibernate.MappingException:
org.hibernate.exception.JDBCConnectionException: Cannot open connection
org.hibernate.exception.GenericJDBCException: Cannot open connection
org.hibernate.tool.ant.HibernateToolTask在那个包下面?
org.hibernate.mappingException:Could not read mappings from resource:
org.hibernate.HibernateException: Found two representations of same collection
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
异常:ERROR [org.hibernate.proxy.BasicLazyInitializer] - CGLIB Enhancement failed...
hibernate
Hibernate