Newer
Older
Philippe Coicadan
committed
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="UTF-8"?>
<a:model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://arolios.org/arolios/model ../schemas/xam.xsd"
xmlns:a="http://arolios.org/arolios/model">
<domain name="library">
<enumeration name="kind_of_book">
<value name="novel" />
<value name="poetry" />
<value name="play" />
<value name="autobiography" />
</enumeration>
<class name="book">
<property name="title" type="charstring" required="true" />
<property name="kind" type="kind_of_book" />
<identifier>
<property>title</property>
</identifier>
</class>
<class name="person" isAbstract="true" >
<property name="first_name" type="charstring"/>
<property name="surname" type="charstring"/>
</class>
<class name="writer" >
<base>person</base>
<property name="name" type="charstring" required="true" />
<identifier>
<property>name</property>
</identifier>
</class>
<association name="author" >
<memberEnd name="books" class="book" />
<memberEnd name="writers" class="writer" />
</association>
<class name="personal_info" >
<property name="introduction" type="mlangtext" />
<property name="birth_date" type="date" required="true" />
<property name="death_date" type="date" />
</class>
<association name="writer_info" >
<memberEnd name="info" class="personal_info" maxOccurs="one"/>
<memberEnd name="writer" class="writer" minOccurs="one" maxOccurs="one" />
</association>
<class name="registered_person">
<base>person</base>
<property name="id_number" type="charstring" required="true" />
<identifier>
<property>id_number</property>
</identifier>
</class>
<association name="borrowing">
<memberEnd name="books" class="book" />
<memberEnd name="borrowers" class="registered_person" />
<property name="borrowing_date" type="date" required="true" />
<property name="return_date" type="date"/>
<identifier>
<property>borrowing_date</property>
</identifier>
</association>
<class name="room">
<property name="name" type="charstring" required="true" />
<identifier>
<property>name</property>
</identifier>
</class>
<class name="shelving" >
<property name="number" type="smallint" required="true" />
</class>
<association name="room_shelving">
<memberEnd name="shelvings" class="shelving" isComposition="true" />
<memberEnd name="room" class="room" minOccurs="one" maxOccurs="one" />
</association>
<type name="position" >
<property name="shelf" type="smallint" />
<property name="place" type="smallint" />
</type>
<association name="book_position" >
<memberEnd name="books" class="book" />
<memberEnd name="shelving" class= "shelving" maxOccurs="one" />
<property name="position" type="position" required="true" />
</association>
</domain>
<domain name="library" action="update">
<class name="personal_info" action="update">
<identifier>
<memberEnd>writer</memberEnd>
</identifier>
</class>
<class name="shelving" action="update" >
<identifier>
<property>number</property>
<memberEnd>room</memberEnd>
</identifier>
</class>
</domain>
</a:model>