Mercurial > pub > ModelGenerator
annotate data/sample.xml @ 13:197a850b1f6f default tip
working version of xml2json transformation
author | cin |
---|---|
date | Mon, 09 Apr 2018 16:27:26 +0300 |
parents | 19a8a71eaa54 |
children |
rev | line source |
---|---|
5 | 1 <?xml version="1.0"?> |
2 <package xmlns="http://implab.org/schemas/data-model.v1.xsd" | |
3 xmlns:f="http://implab.org/schemas/data-model/geo.v1.xsd" xmlns:clr="http://implab.org/schemas/data-model/dotnet.v1.xsd" | |
4 xmlns:sql="http://implab.org/schemas/data-model/sql.v1.xsd" xmlns:esri="http://geopallada.ru/schemas/data-model/esri.v1.xsd" | |
5 name="users" version="1.0" clr:namespace="Sample.Model"> | |
6 | |
7 <import href="types.xml"/> | |
8 | |
9 <entity name="Gallery"> | |
9 | 10 <primaryKey name="GalleryPk"> |
11 <member name="Id" type="Gallery"/> | |
12 </primaryKey> | |
13 | |
14 <property name="Id" type="uuid" special="true"> | |
15 <hiddenBy name="GalleryPk" type="Gallery"/> | |
16 <clr:autoGenrated/> | |
17 </property> | |
18 | |
6 | 19 <hasMany name="ItemLinks" type="GallertItemLink"> |
20 <otherKey name="Item"/> | |
21 <clr:association/> | |
22 </hasMany> | |
5 | 23 </entity> |
24 | |
25 <entity name="GalleryItemLink"> | |
6 | 26 <primaryKey name="Id"> |
27 <member name="Item"/> | |
28 <member name="Gallery"/> | |
5 | 29 </primaryKey> |
6 | 30 <hasA name="Item" type="Item"> |
31 <clr:association /> | |
32 <clr:lazy /> | |
33 </hasA> | |
34 <hasA name="Gallery" type="Gallery"> | |
35 <thisKey name="GalleryId" /> | |
36 <clr:association /> | |
37 <clr:lazy/> | |
38 </hasA> | |
39 </entity> | |
40 | |
41 <entity name="Item"> | |
10
19a8a71eaa54
added test-model.xsl template for testing purpose of model.xsl
cin
parents:
9
diff
changeset
|
42 <primaryKey name="Id" type="uuid"> |
19a8a71eaa54
added test-model.xsl template for testing purpose of model.xsl
cin
parents:
9
diff
changeset
|
43 <clr:autoGenerated/> |
19a8a71eaa54
added test-model.xsl template for testing purpose of model.xsl
cin
parents:
9
diff
changeset
|
44 </primaryKey> |
6 | 45 <property name="href" type="text"/> |
5 | 46 </entity> |
47 </package> |