[
http://mifosforge.jira.com/browse/MIFOS-2750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Udai Gupta resolved MIFOS-2750.
-------------------------------
Team: Core
Resolution: Fixed
Fix Version/s: (was: Gazelle Backlog)
Shamim D
id is not enough to be used for hasCode and equals implementation.
http://community.jboss.org/wiki/EqualsandHashCode
We have to choose a minimal combination of properties using which an object can
be identified in real world.
Also use of
org.apache.commons.lang.builder.EqualsBuilder;
org.apache.commons.lang.builder.HashCodeBuilder;
org.apache.commons.lang.builder.ToStringBuilder;
make the life easier.
Fixed at r17380 in trunk
> OfficeBO implements equals(), but not hashCode()
> ------------------------------------------------
>
> Key: MIFOS-2750
> URL: http://mifosforge.jira.com/browse/MIFOS-2750
> Project: mifos
> Issue Type: Bug
> Reporter: Adam Monsen
> Assignee: Udai Gupta
> Fix For: Shamim D
>
> Attachments: office_hashcode_equals.diff
>
>
> OfficeBO includes an equals() method, but not hashCode().
> See:
> * http://www.ibm.com/developerworks/java/library/j-jtp05273.html
> * https://www.hibernate.org/109.html
> *
> http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals%28java.lang.Object%29
> * http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode%28%29
> OfficeBO might not need either, I don't know. Perhaps ordering could be
> enforced elsewhere as needed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues