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

36 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="BeWo.Data.Entities.AiPromptbausteinRoutine,BeWo.Data" table="AiPromptbausteinRoutine">
<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="Title"/>
<property name="CreatorOid"/>
<property name="Description"/>
<property name="ParentFolderOid"/>
<property name="IsPublic"/>
<property name="Position"/>
<property name="ActionType" type="BS.Shared.AiActionType, BS.Shared"/>
<property name="RoutineType" type="BS.Shared.AiRoutineType, BS.Shared"/>
<bag name="UserFavorites" table="aipromptbausteinroutine2empfavorite" generic="true" cascade="none" batch-size="250">
<key column="AiPromptbausteinRoutineOid" />
<many-to-many column="EmployeeOid" class="BeWo.Data.Entities.Employee, BeWo.Data" />
</bag>
<bag name="Steps" table="aipromptbausteinroutinestep" generic="true" cascade="all-delete-orphan" batch-size="250" where="IsActive = 1">
<key column="RoutineOid" />
<one-to-many class="BeWo.Data.Entities.AiPromptbausteinRoutineStep, BeWo.Data" />
</bag>
</class>
</hibernate-mapping>