[
http://mifosforge.jira.com/browse/MIFOS-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Udai Gupta updated MIFOS-1512:
------------------------------
Scheduled For: Product
Labels: volunteer (was: patch volunteer)
Team: Community
Summary: Implement equals/hashCode in Entity classes using business
key (refactor id only equals/hashcode) (was: persistent object
equals/hashCode-data model clarification needed)
Objective: Need to identify the Object graph of entities and implement
equals/hashcode with unit tests for various states of fields (including null).
> Implement equals/hashCode in Entity classes using business key (refactor id
> only equals/hashcode)
> -------------------------------------------------------------------------------------------------
>
> Key: MIFOS-1512
> URL: http://mifosforge.jira.com/browse/MIFOS-1512
> Project: mifos
> Issue Type: Bug
> Components: Loan Account
> Affects Versions: Release 1.1
> Environment: Platform: All, OS: All
> Reporter: orionlee
> Assignee: mifosdeveloperqueue
> Priority: Major
> Fix For: Gazelle Backlog
>
> Attachments: issue1512_prdofferingfee_testcase.patch
>
>
> It's a follow-up of issue 1511.
> Here I call out a higher-priority issue: that the following persistent objects
> defines custom equals() without a custom hashCode() implementation.
> OfficeBO
> LoanOfferingFundEntity
> PrdOfferingMeetingEntity
> LoanOfferingFeeEntity
> So it'd be possible that the same persistent entity got added twice in some
> java
> collection incorrectly (HashMap, HashSet, etc.).
> as of 12183,
> - It's confirmed they're added to some Hash-based collection (revealed by
> running unittest against custom code to throw assert error upon running error
> code)
> - unclear yet whether the higher-level code will trigger the code paths that
> surface the bugs in a way that causes serious errors, e.g., incorrectly
> persisting the same LoanOfferingFundEntity object multiple times in the
> database.
--
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
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues