[ http://jira.andromda.org/browse/NETCART-6?page=comments#action_14994 ]
Chris Micali commented on NETCART-6: ------------------------------------ I am unable to reproduce this... any ideas? > 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 > Assignee: 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/