Incomplete code generated from association used as key #184
Labels
associations
Related to umple associations
Component-SemanticsAndGen
Related to code generators in general and the meaning of Umple models
Diffic-Med
A non-trivial problem that may take over a week or may not be obvious how to fix or require analysis
Priority-High
This problem or enhancement is likely to be highly visible and or impactful of users
Status-Verified
Type-Defect
Originally reported on Google Code with ID 284
Owned by
fkazhamiaka
What steps will reproduce the problem?
Type the following code
class A
{
1 -- 1 B;
key {B};
}
class B
{
Integer id;
key {id};
}
What is the expected output? What do you see instead?
public boolean equals(Object obj)
{
if (obj == null) { return false; }
if (!getClass().equals(obj.getClass())) { return false; }
A compareTo = (A)obj;
return true;
}
See also issue 226 for another 1-1 problem
Reported by @umple on 2012-03-05 14:43:26
The text was updated successfully, but these errors were encountered: