[
http://mifosforge.jira.com/browse/MIFOS-3056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58369#action_58369
]
Udai Gupta commented on MIFOS-3056:
-----------------------------------
"detached objects from hibernate session" .
http://www.hibernate-training-guide.com/detached-state.html
There are three ways to detach an object
1- Session.close
2- Writing objects on any stream e.g. to File or on network
3- Cloning of object. See link below to clone any object
http://javainnovations.blogspot.com/2008/06/cloning-of-java-objects.html
In FinancialInitializer.initialize()
initialize (finds the coa mapping file and load it into memory)
load (persist the coa mapping and those mappings still holds in hibernate
session)
(earlier there was closing the session here now)
cacheCOA (loads the the objects again from database using query)
All these there call is using same session so there gets some duplication of
COA objects (see the size of coaList in cachCOA() in debugging)
> Fix COABOIntegrationTest failures
> ---------------------------------
>
> Key: MIFOS-3056
> URL: http://mifosforge.jira.com/browse/MIFOS-3056
> Project: mifos
> Issue Type: Dev Task
> Components: Build and Testing
> Affects Versions: Shamim D
> Reporter: Udai Gupta
> Assignee: Shahzada Hatim
> Fix For: Release E - Unscheduled
>
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
--
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
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues