详解 hibernate mapping配置


详解 hibernate mapping配置

https://www.jb51.net/article/115130.htm

 

<?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">
<!-- Mapping file autogenerated by MyEclipse Persistence Tools -->
<hibernate-mapping>
    <class name="com.aaa.bbb.model.ClassName" table="ClassName">
        <id name="id" type="integer">
            <column name="id" />
            <generator class="native" />
        </id>
        <property name="title" type="string">
            <column name="title" length="50">
                <comment>xxx_name</comment>
            </column>
        </property>
        <property name="href" type="string">
            <column name="href" length="254" not-null="true">
                <comment>address</comment>
            </column>
        </property>
    </class>
</hibernate-mapping>

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM