Files
BeWoPlaner/Data/Mappings/Wohneinheit.hbm.xml

50 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="BeWo.Data.Entities.Wohneinheit, BeWo.Data" table="Wohneinheit">
<id name="Oid" column ="Oid" unsaved-value="null">
<generator class="identity" />
</id>
<version type="Int64" column="Version" name="Version" />
<property name="InsTs"/>
<property name="InsUser"/>
<property column="Tid" type="BS.Shared.TableID, BS.Shared" name="_Tid" access="field" />
<property name="UdpUser"/>
<property name="IsActive" type="BS.Shared.ActivationTypeId, BS.Shared" />
<property name="SystemEntryID" type="BS.Shared.SystemEntryID, BS.Shared" />
<property name="Notice"/>
<property name="Wohnname"/>
<property name="Zimmername"/>
<property name="Miete"/>
<property name="Heizung"/>
<property name="Strom"/>
<property name="Betriebskosten"/>
<property name="SonstigeKosten"/>
<property name="Kaution"/>
<property name="QM"/>
<property name="Baujahr"/>
<property name="Mobilierung"/>
<property name="Zusatznotiz"/>
<property name="Stock"/>
<property name="Details1"/>
<property name="Details2"/>
<property name="Details3"/>
<property name="Details4"/>
<property name="Details5"/>
<property name="Details6"/>
<property name="Details7"/>
<property name="Details8"/>
<property name="Details9"/>
<property name="Details10"/>
<!--<property name="WohnheimOid" insert="false" update="false"/>-->
<many-to-one name="Wohnheim" column="WohnheimOid" class="BeWo.Data.Entities.Wohnheim,BeWo.Data" cascade="none" fetch="join"/>
<bag name="Belegungen" table="Wohneinheitbelegung" generic="true" cascade="all-delete-orphan" batch-size="250" inverse="true" >
<key column="WohneinheitOid" />
<one-to-many class="BeWo.Data.Entities.WohneinheitBelegung,BeWo.Data" />
</bag>
<bag name="Grundrisse" table="Image" generic="true" cascade="all-delete-orphan">
<key column="WohneinheitOid" />
<one-to-many class="BeWo.Data.Entities.Image, BeWo.Data" />
</bag>
</class>
</hibernate-mapping>