[ 
http://mifosforge.jira.com/browse/MIFOS-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

keithwoodlock updated MIFOS-1512:
---------------------------------

    Priority: Minor  (was: Major)

> 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
>              Labels: volunteer
>             Fix For: Mifos 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to