diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.installer/examples/org.gastro.business/model/business.ecore')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.examples.installer/examples/org.gastro.business/model/business.ecore | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.gastro.business/model/business.ecore b/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.gastro.business/model/business.ecore new file mode 100644 index 0000000000..13f8aec314 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.gastro.business/model/business.ecore @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ecore:EPackage xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="business" + nsURI="http://www.gastro.org/business/1.0" nsPrefix="business"> + <eClassifiers xsi:type="ecore:EClass" name="BusinessDay"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="date" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="menuCard" lowerBound="1" + eType="ecore:EClass ../../org.gastro.inventory/model/inventory.ecore#//MenuCard"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="orders" upperBound="-1" + eType="#//Order" containment="true" eOpposite="#//Order/businessDay"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="waiters" lowerBound="1" + upperBound="-1" eType="#//Waiter" containment="true" eOpposite="#//Waiter/businessDay"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="closed" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Order"> + <eStructuralFeatures xsi:type="ecore:EReference" name="businessDay" lowerBound="1" + eType="#//BusinessDay" eOpposite="#//BusinessDay/orders"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="table" lowerBound="1" eType="ecore:EClass ../../org.gastro.inventory/model/inventory.ecore#//Table"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="orderDetails" lowerBound="1" + upperBound="-1" eType="#//OrderDetail" containment="true" eOpposite="#//OrderDetail/order"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="number" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="OrderDetail"> + <eStructuralFeatures xsi:type="ecore:EReference" name="order" lowerBound="1" eType="#//Order" + eOpposite="#//Order/orderDetails"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="offering" lowerBound="1" + eType="ecore:EClass ../../org.gastro.inventory/model/inventory.ecore#//Offering"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="quantity" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="state" eType="#//OrderState"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="price" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat" + changeable="false" volatile="true" transient="true" derived="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Waiter"> + <eStructuralFeatures xsi:type="ecore:EReference" name="businessDay" eType="#//BusinessDay" + eOpposite="#//BusinessDay/waiters"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="tables" upperBound="-1" + eType="ecore:EClass ../../org.gastro.inventory/model/inventory.ecore#//Table"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="employee" lowerBound="1" + eType="ecore:EClass ../../org.gastro.inventory/model/inventory.ecore#//Employee"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="from" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="until" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EEnum" name="OrderState"> + <eLiterals name="Ordered"/> + <eLiterals name="Acknowledged" value="2"/> + <eLiterals name="Prepared" value="1"/> + <eLiterals name="Served" value="3"/> + <eLiterals name="Paid" value="4"/> + </eClassifiers> +</ecore:EPackage> |