Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Issue with Map$Entry
[EEF] Issue with Map$Entry [message #656628] Sun, 27 February 2011 18:05 Go to next message
Alain Picard is currently offline Alain Picard
Messages: 180
Registered: July 2009
Senior Member
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=&quot;syste m-uuid&quot;, strategy = &quot;org.eclipse.emf.cdo.server.internal.hibernate.tupl izer.CDOUUIDHexGenerator&quot;)}) "/>
</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=&quot;BaseOrder&quot;)"/>
</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=&quot;orderDetails&quot;, joinColumns=@JoinColumn(name=&quot;orderdetails_orderadd ressid&quot;)) "/>
</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 #657111 is a reply to message #656628] Tue, 01 March 2011 15:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
Alain,

I've been told the guys are busy with a product release and will get to
your questions ASAP. In the meantime, I think it's best to open a
bugzilla with the simple example.


Alain Picard wrote:
> 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
Re: [EEF] Issue with Map$Entry [message #657184 is a reply to message #657111] Tue, 01 March 2011 20:55 Go to previous messageGo to next message
Alain Picard is currently offline Alain Picard
Messages: 180
Registered: July 2009
Senior Member
On 3/1/2011 10:59 AM, Ed Merks wrote:
> Alain,
>
> I've been told the guys are busy with a product release and will get to
> your questions ASAP. In the meantime, I think it's best to open a
> bugzilla with the simple example.
>
Will do
Re: [EEF] Issue with Map$Entry [message #658190 is a reply to message #656628] Mon, 07 March 2011 10:41 Go to previous messageGo to next message
Goulwen Le Fur is currently offline Goulwen Le Fur
Messages: 125
Registered: July 2009
Senior Member
Hello Alain,

Ok I see, You use a Map.Entry as instance class of a EClass. Indeed,
this case is not managed by EEF for the moment.

You can define your own EObjectFlatComboSettings able to process the
Map.Entry before we fix this bug.

Regards,

--
Goulwen Le Fur - goulwen.lefur@obeo.fr


Le 27/02/2011 19:05, Alain Picard a écrit :
> 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
Re: [EEF] Issue with Map$Entry [message #658318 is a reply to message #658190] Mon, 07 March 2011 19:36 Go to previous messageGo to next message
Alain Picard is currently offline Alain Picard
Messages: 180
Registered: July 2009
Senior Member
On 3/7/2011 5:41 AM, Goulwen Le Fur wrote:
> Hello Alain,
>
> Ok I see, You use a Map.Entry as instance class of a EClass. Indeed,
> this case is not managed by EEF for the moment.
>
> You can define your own EObjectFlatComboSettings able to process the
> Map.Entry before we fix this bug.
>
> Regards,
>
Thanks Goulwen
Re: [EEF] Issue with Map$Entry [message #662106 is a reply to message #657184] Tue, 29 March 2011 10:46 Go to previous messageGo to next message
mil123d  is currently offline mil123d
Messages: 1
Registered: March 2011
Junior Member
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

[COLOR="Red"]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
[/COLOR]


and

Re: [EEF] Issue with Map$Entry [message #662169 is a reply to message #662106] Tue, 29 March 2011 15:31 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
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
>
>
Previous Topic:Recursive method deleting empty packages in a model issue
Next Topic:[Ecore] fully qualified name for EObject type
Goto Forum:
  


Current Time: Thu Oct 23 03:16:11 GMT 2014

Powered by FUDForum. Page generated in 0.04581 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software