|
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="RailwayReservationSystem" namespace="RailwayReservationSystem.Domain">
<class name="Train" table="TRAIN">
<id name="TrainId" column="TRAINID" generator="native" />
<property name="TrainNo" column="TRAINNO" type="int" not-null="true"></property>
<property name="TrainName" column="TRAINNAME" type="string" not-null="true"></property>
<set name="TrainBookings" inverse="true" table="TICKET">
<key column="TRAINID"></key>
<one-to-many class="Ticket"></one-to-many>
</set>
</class>
</hibernate-mapping>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.