hibernate配置文件,类的映射文件.hbm.xml



    <?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>

    <class name="Event" table="TSBLES">

        <id name="id">

            <generator class="increment"/>

        </id>

        <property name="date"/>

        <property name="age"/>    

    </class>

</hibernate-mapping>

 

 

你可能感兴趣的:(hibernate配置文件,类的映射文件.hbm.xml)