adamsaghy commented on PR #5813:
URL: https://github.com/apache/fineract/pull/5813#issuecomment-4358811105

   > @adamsaghy Correct me if I got it wrong. In the codebase, getLoanProduct() 
should never return null because loanProduct is a mandatory @manytoone 
relationship on the Loan entity but if a Loan object is loaded in one Hibernate 
session and then getLoanProduct() is called outside that session, hibernate 
will return null as it can't initialize the proxy
   
   Technically maybe but:
   - loan product on loan is eagerly loaded (if i remember correctly)
   - all write operations are inside transaction boundary way: no such thing 
loan is loaded and txn ended but still there are write / read operations.
   
   How did you come to the conclusion this is an issue? 
   
   Have you noticed NPE somewhere?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to