30 lines
1.3 KiB
XML
Executable File
30 lines
1.3 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
XML based configuration file for JobResultModel. This is set to eager loading (lazy="false") as by the time we return
|
|
the data via WCF the session is closed and it causes a crash.
|
|
|
|
This also includes AssetBuilderJobResultModel. This is due to it being a child class of JobResultModel. This will
|
|
result in AssetBuilderJobResultModel having its own table which links to JobResults.
|
|
|
|
@see RSG.Pipeline.Automation.Database.Domain.Entities.JobResults.JobResultModel
|
|
-->
|
|
<hibernate-mapping assembly="RSG.Pipeline.Automation.Database.Domain" namespace="RSG.Pipeline.Automation.Database.Domain.Entities.JobResults" xmlns="urn:nhibernate-mapping-2.2" >
|
|
<class name="JobResultModel" table="JobResults">
|
|
<!-- BaseModel Properties -->
|
|
<id name="JobId" type="guid" >
|
|
<generator class="assigned" />
|
|
</id>
|
|
|
|
<property name="Succeeded" />
|
|
|
|
<set name="Changes" table="JobResultChanges" cascade="all" lazy="false">
|
|
<key column="JobId"/>
|
|
<one-to-many class="RSG.Pipeline.Automation.Database.Domain.Entities.Change" />
|
|
</set>
|
|
|
|
<joined-subclass name="AssetBuilderJobResultModel" table="AssetBuilderJobResults">
|
|
<key column="JobId" />
|
|
<property name="SubmittedChangelistNumber" />
|
|
</joined-subclass>
|
|
</class>
|
|
</hibernate-mapping> |