Skip to main content



      Home
Home » Modeling » Epsilon » Namespace reference
Namespace reference [message #584506] Fri, 08 January 2010 13:38 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 22 14:23:21 EDT 2025

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

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

Back to the top