forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDomain.hbm.xml
34 lines (31 loc) · 1.02 KB
/
Domain.hbm.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
namespace="NHibernate.Test.CollectionTest"
assembly="NHibernate.Test">
<class name="Env">
<id name="Id">
<generator class="assigned"/>
</id>
<bag name="RequestsFailed" inverse="true" lazy="extra"
where="RequestCompletionStatus != 1">
<key column="EnvId"/>
<one-to-many class="MachineRequest"/>
<filter name="CurrentOnly"/>
</bag>
<map name="FailedRequestsById" inverse="true"
where="RequestCompletionStatus != 1">
<key column="EnvId"/>
<map-key type="Int64" column="Id"/>
<one-to-many class="MachineRequest"/>
<filter name="CurrentOnly"/>
</map>
</class>
<class name="MachineRequest">
<id name="Id">
<generator class="assigned"/>
</id>
<property name="EnvId"/>
<property name="RequestCompletionStatus"/>
</class>
<filter-def name="CurrentOnly" condition="1 = 0"/>
</hibernate-mapping>