[EEF] Issue with Map$Entry [message #656628] |
Sun, 27 February 2011 13:05  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------020408070605080503020703
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I am using the attached model1.ecore that comes from the CDO test suite
to test EEF.
After a few unrelated issues I am down to 2 errors related to the
ProductToOrder class which is of type java.util.Map$Entry.
Here are my errors:
in initPart of ProductToOrderPropertiesEditionComponent I have:
keySettings = new EObjectFlatComboSettings(productToOrder,
Model1Package.eINSTANCE.getProductToOrder_Key());
where productToOrder resolves to Model1ViewsRepository.ProductToOrder
since there is no generated ProductToOrder in
org.eclipse.emf.cdo.tests.model1 (the base package for all model
interfaces).
Is this a corner case that is not well supported yet?
Cheers,
Alain
--------------020408070605080503020703
Content-Type: text/xml;
name="model1.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="model1.ecore"
<?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="model1"
nsURI="http://www.eclipse.org/emf/CDO/tests/model1/1.0.0" nsPrefix="model1">
<eAnnotations source="teneo.jpa">
<details key="value" value=" @hbGenericGenerators({@GenericGenerator(name="syste m-uuid", strategy = "org.eclipse.emf.cdo.server.internal.hibernate.tupl izer.CDOUUIDHexGenerator")}) "/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="Address">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="street" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="city" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Company" eSuperTypes="#//Address">
<eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1"
eType="#//Category" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="suppliers" upperBound="-1"
eType="#//Supplier" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="customers" upperBound="-1"
eType="#//Customer" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="purchaseOrders" upperBound="-1"
eType="#//PurchaseOrder" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="salesOrders" upperBound="-1"
eType="#//SalesOrder" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Supplier" eSuperTypes="#//Address">
<eStructuralFeatures xsi:type="ecore:EReference" name="purchaseOrders" upperBound="-1"
eType="#//PurchaseOrder" eOpposite="#//PurchaseOrder/supplier"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="preferred" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Customer" eSuperTypes="#//Address">
<eStructuralFeatures xsi:type="ecore:EReference" name="salesOrders" upperBound="-1"
eType="#//SalesOrder" eOpposite="#//SalesOrder/customer"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="orderByProduct" upperBound="-1"
eType="#//ProductToOrder" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Order" abstract="true">
<eAnnotations source="teneo.jpa">
<details key="value" value="@Entity(name="BaseOrder")"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="orderDetails" upperBound="-1"
eType="#//OrderDetail" containment="true" eOpposite="#//OrderDetail/order"/>
</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="product" eType="#//Product1"
eOpposite="#//Product1/orderDetails"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="price" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PurchaseOrder" eSuperTypes="#//Order">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="date" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="supplier" lowerBound="1"
eType="#//Supplier" eOpposite="#//Supplier/purchaseOrders"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="SalesOrder" eSuperTypes="#//Order">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="customer" lowerBound="1"
eType="#//Customer" eOpposite="#//Customer/salesOrders"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Category">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1"
eType="#//Category" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="products" upperBound="-1"
eType="#//Product1" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Product1">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="teneo.jpa">
<details key="value" value="@Id"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="orderDetails" upperBound="-1"
eType="#//OrderDetail" eOpposite="#//OrderDetail/product"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="vat" eType="#//VAT" defaultValueLiteral="vat15"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
transient="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="VAT">
<eLiterals name="vat0"/>
<eLiterals name="vat7" value="7"/>
<eLiterals name="vat15" value="15"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OrderAddress" eSuperTypes="#//Address #//Order #//OrderDetail">
<eAnnotations source="teneo.jpa">
<details key="value" value="@AssociationOverride(name="orderDetails", joinColumns=@JoinColumn(name="orderdetails_orderadd ressid")) "/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="testAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ProductToOrder" instanceClassName="java.util.Map$Entry">
<eStructuralFeatures xsi:type="ecore:EReference" name="key" eType="#//Product1"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//SalesOrder"/>
</eClassifiers>
</ecore:EPackage>
--------------020408070605080503020703--
|
|
|
|
|
|
|
|
Re: [EEF] Issue with Map$Entry [message #662169 is a reply to message #662106] |
Tue, 29 March 2011 11:31  |
Eclipse User |
|
|
|
This is an EEF question? Teneo may not even support generation unless
you run as an Eclipse application...
mil123d wrote:
> Hello, I want all the steps to generate. ecore with teneo
>
> I did a project, but there are error
>
> could not found main class:org.eclipse.emf.teneo.jpa.GenerateORM
> progamm will exist
>
> and
>
> Usage: javaw [-options] class [args...]
> (to execute a class)
> or javaw [-options] -jar jarfile [args...]
> (to execute a jar file)
>
> where options include:
> -client to select the "client" VM
> -server to select the "server" VM
> -hotspot is a synonym for the "client" VM [deprecated]
> The default VM is client.
> -cp <class search path of directories and zip/jar
> files>
> -classpath <class search path of directories and zip/jar files>
> A ; separated list of directories, JAR archives,
> and ZIP archives to search for class files.
> -D<name>=<value>
> set a system property
> -verbose[:class|gc|jni]
> enable verbose output
> -version print product version and exit
> -version:<value>
> require the specified version to run
> -showversion print product version and continue
> -jre-restrict-search | -jre-no-restrict-search
> include/exclude user private JREs in the version search
> -? -help print this help message
> -X print help on non-standard options
> -ea[:<packagename>...|:<classname>]
> -enableassertions[:<packagename>...|:<classname>]
> enable assertions
> -da[:<packagename>...|:<classname>]
> -disableassertions[:<packagename>...|:<classname>]
> disable assertions
> -esa | -enablesystemassertions
> enable system assertions
> -dsa | -disablesystemassertions
> disable system assertions
> -agentlib:<libname>[=<options>]
> load native agent library <libname>, e.g.
> -agentlib:hprof
> see also, -agentlib:jdwp=help and -agentlib:hprof=help
> -agentpath:<pathname>[=<options>]
> load native agent library by full pathname
> -javaagent:<jarpath>[=<options>]
> load Java programming language agent, see
> java.lang.instrument
> -splash:<imagepath>
> show splash screen with specified image
>
>
> and
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.09144 seconds