Files
BeWoPlaner/Data/Mappings/Customer2Wohnheim.hbm.xml
2016-06-27 01:45:38 +02:00

31 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="BeWo.Data.Entities.Customer2Wohnheim,BeWo.Data" table="Customer2Wohnheim">
<id name="Oid" column="Oid" type="Int64" unsaved-value="null">
<generator class="identity" />
</id>
<version type="Int64" column="Version" name="Version" />
<property column="CustomerOid" type="Int64" name="CustomerOid" update="false" insert="false" />
<property column="WohnheimOid" type="Int64" name="WohnheimOid" update="false" insert="false" />
<property column="Tid" type="BS.Shared.TableID, BS.Shared" name="_Tid" access="field" />
<property column="Notice" type="String" name="Notice" />
<property column="InsTs" type="DateTime" name="InsTs" />
<property column="InsUser" type="String" name="InsUser" />
<property column="UdpUser" type="String" name="UdpUser" />
<property column="IsActive" type="BS.Shared.ActivationTypeId, BS.Shared" name="IsActive" />
<property column="SystemEntryID" type="BS.Shared.SystemEntryID, BS.Shared" name="SystemEntryID" />
<many-to-one name="Customer" column="CustomerOid" class="BeWo.Data.Entities.Customer,BeWo.Data" cascade="none" />
<many-to-one name="Wohnheim" column="WohnheimOid" class="BeWo.Data.Entities.Wohnheim,BeWo.Data" cascade="none" />
<bag name="ValueList" table="ValueListEntry2Object" generic="true" cascade="all-delete-orphan" where="ObjectTid = 10" batch-size="250">
<key column="ObjectOid" />
<one-to-many class="BeWo.Data.Entities.ValueListEntry2Object,BeWo.Data" />
</bag>
</class>
</hibernate-mapping>