-
Notifications
You must be signed in to change notification settings - Fork 0
/
vouchers_model.xml
54 lines (54 loc) · 2.19 KB
/
vouchers_model.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model model-name="ds_vouchers_f25e825a_b86a_41ac_9923_f3cd" version="0.0.4">
<layout>
<model/>
<classes>
<class name="VoucherSerie">
<property name="code" x="-192" y="143"/>
<property name="activeTo" x="-192" y="203"/>
<property name="startedAt" x="-192" y="263"/>
<property name="vouchers" x="-192" y="323"/>
<reference name="client" x="-188" y="78"/>
</class>
<class name="Voucher">
<property name="code" x="82" y="647"/>
<property name="issuedAt" x="82" y="587"/>
<property name="serie" x="77" y="520"/>
<reference name="gift" x="79" y="714"/>
</class>
</classes>
<statuses class="Voucher">
<stakeholder-link code="VoucherMain">
<status code="ISSUED" x="298" y="104"/>
<status code="OPEN" x="41" y="-10"/>
</stakeholder-link>
</statuses>
</layout>
<class name="VoucherSerie" strategy="JOINED" is-dictionary="false" is-abstract="false" embeddable="false">
<property name="code" type="STRING" length="254"/>
<property name="activeTo" type="LOCALDATE"/>
<property name="startedAt" type="LOCALDATE"/>
<property name="vouchers" type="Voucher" collection="SET" mappedBy="serie"/>
<reference name="client" type="Client"/>
</class>
<class name="Voucher" strategy="JOINED" is-dictionary="false" is-abstract="false" embeddable="false">
<property name="code" type="STRING" length="254" mandatory="true"/>
<property name="issuedAt" type="LOCALDATETIME" length="3"/>
<property name="serie" type="VoucherSerie" parent="true"/>
<reference name="gift" type="Gift"/>
<index unique="true">
<property name="code"/>
</index>
</class>
<status-classes class="Voucher">
<stakeholder code="VoucherMain" name="Основной статус ваучера"/>
</status-classes>
<statuses class="Voucher" historical="false">
<stakeholder-link code="VoucherMain">
<status code="ISSUED" name="Использован" initial="false"/>
<status code="OPEN" name="Открыт" initial="true">
<to status="ISSUED"/>
</status>
</stakeholder-link>
</statuses>
</model>