Identifier is created in base and inherited class
-------------------------------------------------

         Key: NETCART-6
         URL: http://jira.andromda.org/browse/NETCART-6
     Project: .NET Cartridges
        Type: Bug

    Reporter: Naresh Bhatia
 Assigned to: Naresh Bhatia 
    Priority: Minor


Create a Shape entity. Derive a CompoundShape entity from it. Generate and 
compile the code. You will get the following warning: 

'DotNetTest.Domain.CompoundShape.Id' hides inherited member 
'DotNetTest.Domain.Shape.Id'. To make the current member override that 
implementation, add the override keyword. Otherwise add the new keyword

The problem is that the identifier is created in both the base class and the 
derived class.

A quick workaround. Just force the identifier of one of the entities to be 
other than "id". You can do this by adding and attribute and putting a 
stereotype of <<identifier>> on it. For example, add an identifier called 
shapeId to the Shape entity.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Reply via email to