云开见日------实现从表格向数据库插数据
时间:2021-07-01 10:21:17
帮助过:2人阅读
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="com.ssh.beans.User" table="user">
<id name="id" column="userId">
<generator class="native"></generator>
</id>
<property name="username" column="username" type="java.lang.String" not-null="true" length="16"></property>
<property name="password" column="password" type="java.lang.String" not-null="true" length="16"/>
<property name="gender" column="gender" type="java.lang.Integer" length="1"/>
</class>
</hibernate-mapping>
云开见日------实现从表格向数据库插数据
标签: