66 lines
4.7 KiB
XML
66 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
|
<class name="BeWo.Data.Entities.InvoiceBase,BeWo.Data" table="InvoiceBase">
|
|
<id name="Oid" column="Oid" type="Int64" unsaved-value="null">
|
|
<generator class="identity" />
|
|
</id>
|
|
<version type="Int64" column="Version" name="Version" />
|
|
<property column="Tid" type="BS.Shared.TableID, BS.Shared" name="_Tid" access="field" />
|
|
<property column="Notice" type="String" name="Notice" length="1024" />
|
|
<property column="InsTs" type="DateTime" name="InsTs" />
|
|
<property column="InsUser" type="String" name="InsUser" length="256" />
|
|
<property column="UdpUser" type="String" name="UdpUser" length="256" />
|
|
<property column="IsActive" type="BS.Shared.ActivationTypeId, BS.Shared" name="IsActive" />
|
|
<property column="SystemEntryID" type="BS.Shared.SystemEntryID, BS.Shared" name="SystemEntryID" />
|
|
<property column="Type" type="BS.Shared.InvoiceType, BS.Shared" name="Type" />
|
|
<property column="AccountingPeriodStart" type="DateTime" name="AccountingPeriodStart" />
|
|
<property column="AccountingPeriodEnd" type="DateTime" name="AccountingPeriodEnd" />
|
|
<property column="CreatorFirstName" type="String" name="CreatorFirstName" />
|
|
<property column="CreatorLastName" type="String" name="CreatorLastName" />
|
|
<property column="DueDate" type="DateTime" name="DueDate" />
|
|
<property column="InvoiceDate" type="DateTime" name="InvoiceDate" />
|
|
<property column="InvoiceNumber" type="String" name="InvoiceNumber" />
|
|
<property column="InvoiceTitle" type="String" name="InvoiceTitle" />
|
|
<property column="InvoiceId" type="String" name="InvoiceId" />
|
|
<property column="InvoiceTypeText" type="String" name="InvoiceTypeText" />
|
|
<property column="IsReviewed" type="Boolean" name="IsReviewed" />
|
|
<property column="IsSent" type="Boolean" name="IsSent" />
|
|
<property column="IsExported" type="Boolean" name="IsExported" />
|
|
<property column="IsPaid" type="Boolean" name="IsPaid" />
|
|
<property column="PartialPayment" type="String" name="PartialPayment" />
|
|
<property column="RecipientCostBearerOid" type="Int64" name="RecipientCostBearerOid" />
|
|
<property column="RecipientCustomerOid" type="Int64" name="RecipientCustomerOid" />
|
|
<property column="RecipientDivision" type="String" name="RecipientDivision" />
|
|
<property column="RecipientOrganisation" type="String" name="RecipientOrganisation" />
|
|
<property column="RecipientOrganisationOid" type="Int64" name="RecipientOrganisationOid" />
|
|
<property column="RecipientPersonFirstName" type="String" name="RecipientPersonFirstName" />
|
|
<property column="RecipientPersonLastName" type="String" name="RecipientPersonLastName" />
|
|
<property column="RecipientPersonOid" type="Int64" name="RecipientPersonOid" />
|
|
<property column="DunningLetterCount" type="Int32" name="DunningLetterCount" />
|
|
<property column="SenderDivision" type="String" name="SenderDivision" />
|
|
<property column="SenderFirstName" type="String" name="SenderFirstName" />
|
|
<property column="SenderLastName" type="String" name="SenderLastName" />
|
|
<property column="SenderOrganisation" type="String" name="SenderOrganisation" />
|
|
<property column="SupportConceptOid" type="Int64" name="SupportConceptOid" />
|
|
<property column="StornoInvoiceBaseOid" type="Int64" name="StornoInvoiceBaseOid" />
|
|
<property column="CostBearer2SupportConceptOid" type="Int64" name="CostBearer2SupportConceptOid" update="false" insert="false"/>
|
|
<property column="CustomerReferenceNumber" type="String" name="CustomerReferenceNumber" />
|
|
<property column="XMLData" type="String" name="XMLData" />
|
|
<many-to-one name="SenderAddress" column="SenderAddressOid" class="BeWo.Data.Entities.Address, BeWo.Data" cascade="all" />
|
|
<many-to-one name="RecipientAddress" column="RecipientAddressOid" class="BeWo.Data.Entities.Address, BeWo.Data" cascade="all" />
|
|
<many-to-one name="CostBearer2SupportConcept" column="CostBearer2SupportConceptOid" class="BeWo.Data.Entities.CostBearer2SupportConcept, BeWo.Data" cascade="none" />
|
|
<bag name="InvoiceItems" table="InvoiceItem" generic="true" cascade="all-delete-orphan" batch-size="250">
|
|
<key column="InvoiceBaseOid" />
|
|
<one-to-many class="BeWo.Data.Entities.InvoiceItem,BeWo.Data" />
|
|
</bag>
|
|
<bag name="SenderContacts" table="Contact" generic="true" cascade="all-delete-orphan" batch-size="250">
|
|
<key column="InvoiceBaseSenderOid" />
|
|
<one-to-many class="BeWo.Data.Entities.Contact,BeWo.Data" />
|
|
</bag>
|
|
<bag name="RecipientContacts" table="Contact" generic="true" cascade="all-delete-orphan" batch-size="250">
|
|
<key column="InvoiceBaseRecipientOid" />
|
|
<one-to-many class="BeWo.Data.Entities.Contact,BeWo.Data" />
|
|
</bag>
|
|
</class>
|
|
</hibernate-mapping> |