38 lines
2.8 KiB
XML
38 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
|
<class name="BeWo.Data.Entities.Contract,BeWo.Data" table="Contract" >
|
|
<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="EmployeeOid" type="Int64" name="EmployeeOid" update="false" insert="false"/>
|
|
<property column="HourlyRate" type="Decimal" name="HourlyRate" />
|
|
<property column="WeeklyFLS" type="Decimal" name="WeeklyFLS" />
|
|
<property column="MonthlyFLS" type="Decimal" name="MonthlyFLS" />
|
|
<property column="WeeklyTotalHours" type="Decimal" name="WeeklyTotalHours" />
|
|
<property column="MonthlyTotalHours" type="Decimal" name="MonthlyTotalHours" />
|
|
<property column="LeaveDays" type="Decimal" name="LeaveDays" />
|
|
<property column="EntryDate" type="DateTime" name="EntryDate" />
|
|
<property column="ContractEndDate" type="DateTime" name="ContractEndDate" />
|
|
<property column="CancellationPeriod" type="Int32" name="CancellationPeriod" />
|
|
<property column="ProbationPeriod" type="Int32" name="ProbationPeriod" />
|
|
<property column="ProbationPeriod2" type="Decimal" name="ProbationPeriod2" />
|
|
<property column="WeeklyDays" type="Int32" name="WeeklyDays" />
|
|
|
|
<!-- BUG: Lazy-Loading auf false setzen, da es sonst zu einer Exception wegen einer geschlossenen NHibernate-Session im MoK bei dem Mitarbeiterstundenkonto kommt, wenn auf EmploymentType zugegriffen wird (Z.B. bei BetreuWo e.V.) -->
|
|
<many-to-one name="EmploymentType" lazy="false" column="EmploymentTypeOid" class="BeWo.Data.Entities.EmploymentType,BeWo.Data" cascade="none" />
|
|
<many-to-one name="HourlyRateCostRateValue" column="HourlyRateCostRateValueOid" class="BeWo.Data.Entities.CostRatePeriod,BeWo.Data" cascade="none" />
|
|
<many-to-one name="ContractTypeValueListEntry" column="ContractTypeValueListEntryOid" class="BeWo.Data.Entities.ValueListEntry,BeWo.Data" cascade="none" />
|
|
<many-to-one name="QualifikationsBedarfValueListEntry" column="QualifikationsBedarfValueListEntryOid" class="BeWo.Data.Entities.ValueListEntry,BeWo.Data" cascade="none" />
|
|
</class>
|
|
</hibernate-mapping>
|
|
|
|
|