造成的:
org.hibernate.MappingException:无法确定类型:controler.Role,列:[org.hibernate.mapping.Column(ROLE)]
你能帮我解决这个问题吗?
这是我的映射类
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="controler.Role" table="ROLE">
<id name="roleId" column="ROLEID">
<generator class="increment"/>
</id>
<property name="title" column="TITLE"/>
</class>
</hibernate-mapping>
Role 是一个 pojo 类,我在 JavaDB 中有名为 Role 的相关表。角色表有属性roleid(char)和roletitle(varchar)