1

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="domain">
<class name="Product" table="Product">
<id name="id" column="id">
<generator class="native" />
</id>
<property name="name" column="name" />
<property name="description" column="description" />
<property name="price" column="price" />
</class>
</hibernate-mapping>

posted @ 2019-05-13 16:33  江期玉  阅读(170)  评论(0编辑  收藏  举报