⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reservation.hbm.xml

📁 hibernate3.0 映射文件生成器
💻 XML
字号:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
    
<hibernate-mapping>
<!-- 
    Created by the Middlegen Hibernate plugin 2.1

    http://boss.bekk.no/boss/middlegen/
    http://www.hibernate.org/
-->

<class 
    name="airline.hibernate.Reservation" 
    table="reservations"
>

    <composite-id name="comp_id" class="airline.hibernate.ReservationPK">
        <key-property 
            name="reservationId" 
            column="reservation_id" 
            type="java.lang.Integer"
        />
        <key-property 
            name="personIdFk" 
            column="person_id_fk" 
            type="java.lang.Integer"
        />
        <key-property 
            name="flightIdFk" 
            column="flight_id_fk" 
            type="java.lang.Integer"
        />
    </composite-id>    

    <property
        name="registrationUtc"
        type="java.sql.Timestamp"
        column="registration_utc"
        not-null="true"
    />
    <property
        name="comment"
        type="java.lang.String"
        column="comment"
    />

    <!-- Associations -->
    <!-- derived association(s) for compound key -->
    <!-- bi-directional many-to-one association to Flight -->
    <many-to-one
        name="flight"
	    class="airline.hibernate.Flight"
	    update="false"
	    insert="false"
	>
    	<column name="flight_id_fk" />
	</many-to-one>
	
    <!-- bi-directional many-to-one association to Person -->
    <many-to-one
        name="person"
	    class="airline.hibernate.Person"
	    update="false"
	    insert="false"
	>
    	<column name="person_id_fk" />
	</many-to-one>
	
    <!-- end of derived association(s) -->
  

</class>
</hibernate-mapping>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -