JPASupport equals
Bug #556300 reported by
Alexander Strebkov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Undecided
|
Unassigned | |||
1.1 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Sometimes models being compared have different classes, for example:
this.getClass() is "models.Country"
but other.getClass() is "models.
in such a case this part of JPASupport.equals() method will return false:
if (!(this.
return false;
}
Found the following blog entry describing similar problem and how to fix it:
http://
So above condition should be replaced with something like:
if (!this.
return false;
}
To post a comment you must log in.