Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Namespace reference
Namespace reference [message #584506] Fri, 08 January 2010 13:38 Go to next message
BALLESTA Mising name is currently offline BALLESTA Mising name
Messages: 6
Registered: July 2009
Location: Paris
Junior Member
Hi,

I try to write an Entity/Relationship metamodel in a file named "mm_ER.emf" :

=============================
@namespace(uri="mm_ER",
prefix="mm_ER")

package mm_ER;

// Simplified Entity/Relationship meta model
class mm_ER {
attr String name;
attr String description;
val Entity[*]#model entites;
}
...
=============================


I get a Warning Description in Problems Tag:
"The opposite of the opposite may not be a reference different from this one"

The folowing lines are underlined in orange:
"@namespace(uri="mm_ER",
prefix="mm_ER")

package mm_ER;"

I do not have a clear understanding of namespaces and prefixes in Epsilon; where coumld i find some explanations.

Best regards
Bernard
Re: Namespace reference [message #584586 is a reply to message #584506] Sun, 10 January 2010 05:51 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Bernard,

You're most likely getting this warning because the "model" reference in
your Entity class doesn't define an opposite (it should be "entites" so
that opposites match).

Namespaces and prefixes do not seem to be related to this problem and in
fact they are EMF concepts (Emfatic - the notation you use in your .emf
files - is a textual syntax for EMF Ecore and is developed independently
of Epsilon).

If the problem persists, please send me your .emf file so that I can
have a closer.

Cheers,
Dimitris

On 08/01/2010 18:38, BALLESTA wrote:
> Hi,
>
> I try to write an Entity/Relationship metamodel in a file named
> "mm_ER.emf" :
>
> =============================
> @namespace(uri="mm_ER", prefix="mm_ER")
>
> package mm_ER;
>
> // Simplified Entity/Relationship meta model class mm_ER {
> attr String name;
> attr String description;
> val Entity[*]#model entites;
> }
> ..
> =============================
>
>
> I get a Warning Description in Problems Tag:
> "The opposite of the opposite may not be a reference different from this
> one"
>
> The folowing lines are underlined in orange:
> "@namespace(uri="mm_ER", prefix="mm_ER")
>
> package mm_ER;"
>
> I do not have a clear understanding of namespaces and prefixes in
> Epsilon; where coumld i find some explanations.
>
> Best regards Bernard
>
>
Previous Topic:Problem calling Native java code
Next Topic:Namespace reference
Goto Forum:
  


Current Time: Wed Jul 23 18:15:16 EDT 2014

Powered by FUDForum. Page generated in 0.02681 seconds