Hibernate实体配置文件User.hbm.xml

<?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="hibernate.domain">

    <class name="User" >
        <id name="u_id">
            <generator class="native"/>
        </id>
        <property name="u_name"/>
        <property name="u_come"/>
    </class>
    
</hibernate-mapping>

 

你可能感兴趣的:(Hibernate实体配置文件User.hbm.xml)