Hibernate的映射出错,麻烦帮忙看看
目录结构如下:
映射文件代码如下:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.ticketSerivce.dao">
<class name="Admin" table="admin" >
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="identity" />
</id>
<property name="login" type="java.lang.String">
<column name="login" not-null="true"/>
</property>
<property name="password" type="java.lang.String">
<column name="password" not-null="true"/>
</property>
<property name="name" type="java.lang.String">
<column name="name" not-null="true"/>
</property>
<property name="vaild" type="java.lang.Boolean">
<column name="vaild"/>
</property>
<property name="phone" type="java.lang.String">
<column name="phone" not-null="true"/>
</property>
<property name="email" type="java.lang.String">
<column name="email" not-null="true"/>
</property>
<property name="createTime" type="java.sql.Timestamp">
<column name="createTime" not-null="true"/>
</property>
</class>
</hibernate-mapping>