Integrate aai-schema-ingest library into aai-core
[aai/aai-common.git] / aai-core / src / test / resources / oxm / business_v11.xml
1 <xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm" package-name="inventory.aai.onap.org.v11" xml-mapping-metadata-complete="true">
2 <xml-schema element-form-default="QUALIFIED">
3 <xml-ns namespace-uri="http://org.onap.aai.inventory/v11" />
4 </xml-schema>
5 <java-types>
6 <java-type name="Inventory">
7 <xml-root-element name="inventory" />
8 <java-attributes>
9 <xml-element java-attribute="business" name="business" type="inventory.aai.onap.org.v11.Business" />
10 </java-attributes>
11 </java-type>
12 <java-type name="Business">
13 <xml-properties>
14 <xml-property name="description" value="Namespace for business related constructs" />
15 </xml-properties>
16 <xml-root-element name="business" />
17 <java-attributes>
18 <xml-element java-attribute="customers" name="customers" type="inventory.aai.onap.org.v11.Customers" />
19 </java-attributes>
20 </java-type>
21 <java-type name="Customers">
22 <xml-properties>
23 <xml-property name="description" value="Collection of customer identifiers to provide linkage back to BSS information." />
24 </xml-properties>
25 <xml-root-element name="customers" />
26 <java-attributes>
27 <xml-element container-type="java.util.ArrayList" java-attribute="customer" name="customer" type="inventory.aai.onap.org.v11.Customer" />
28 </java-attributes>
29 <xml-properties>
30 <xml-property name="maximumDepth" value="0" />
31 </xml-properties>
32 </java-type>
33 <java-type name="Customer">
34 <xml-root-element name="customer" />
35 <java-attributes>
36 <xml-element java-attribute="globalCustomerId" name="global-customer-id" required="true" type="java.lang.String" xml-key="true">
37 <xml-properties>
38 <xml-property name="description" value="Global customer id used across to uniquely identify customer." />
39 </xml-properties>
40 </xml-element>
41 <xml-element java-attribute="subscriberName" name="subscriber-name" required="true" type="java.lang.String">
42 <xml-properties>
43 <xml-property name="description" value="Subscriber name, an alternate way to retrieve a customer." />
44 </xml-properties>
45 </xml-element>
46 <xml-element java-attribute="subscriberType" name="subscriber-type" required="true" type="java.lang.String">
47 <xml-properties>
48 <xml-property name="description" value="Subscriber type, a way to provide VID with only the INFRA customers." />
49 <xml-property name="defaultValue" value="CUST" />
50 </xml-properties>
51 </xml-element>
52 <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
53 <xml-properties>
54 <xml-property name="description" value="Used for optimistic concurrency.  Must be empty on create, valid on update and delete." />
55 </xml-properties>
56 </xml-element>
57 <xml-element java-attribute="serviceSubscriptions" name="service-subscriptions" type="inventory.aai.onap.org.v11.ServiceSubscriptions" />
58 </java-attributes>
59 <xml-properties>
60 <xml-property name="description" value="customer identifiers to provide linkage back to BSS information." />
61 <xml-property name="nameProps" value="subscriber-name" />
62 <xml-property name="indexedProps" value="subscriber-name,global-customer-id,subscriber-type" />
63 <xml-property name="searchable" value="global-customer-id,subscriber-name" />
64 <xml-property name="uniqueProps" value="global-customer-id" />
65 <xml-property name="container" value="customers" />
66 <xml-property name="namespace" value="business" />
67 </xml-properties>
68 </java-type>
69 <java-type name="ServiceSubscriptions">
70 <xml-properties>
71 <xml-property name="description" value="Collection of objects that group service instances." />
72 </xml-properties>
73 <xml-root-element name="service-subscriptions" />
74 <java-attributes>
75 <xml-element container-type="java.util.ArrayList" java-attribute="serviceSubscription" name="service-subscription" type="inventory.aai.onap.org.v11.ServiceSubscription" />
76 </java-attributes>
77 </java-type>
78 <java-type name="ServiceSubscription">
79 <xml-root-element name="service-subscription" />
80 <java-attributes>
81 <xml-element java-attribute="serviceType" name="service-type" required="true" type="java.lang.String" xml-key="true">
82 <xml-properties>
83 <xml-property name="description" value="Value defined by orchestration to identify this service." />
84 </xml-properties>
85 </xml-element>
86 <xml-element java-attribute="tempUbSubAccountId" name="temp-ub-sub-account-id" type="java.lang.String">
87 <xml-properties>
88 <xml-property name="description" value="This property will be deleted from A&amp;AI in the near future. Only stop gap solution." />
89 </xml-properties>
90 </xml-element>
91 <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
92 <xml-properties>
93 <xml-property name="description" value="Used for optimistic concurrency.  Must be empty on create, valid on update and delete." />
94 </xml-properties>
95 </xml-element>
96 </java-attributes>
97 <xml-properties>
98 <xml-property name="description" value="Object that group service instances." />
99 <xml-property name="indexedProps" value="service-type" />
100 <xml-property name="dependentOn" value="customer" />
101 <xml-property name="container" value="service-subscriptions" />
102 <xml-property name="crossEntityReference" value="service-instance,service-type" />
103 </xml-properties>
104 </java-type>
105 </java-types>
106 </xml-bindings>