use of org.mifos.accounts.productdefinition.business.LoanOfferingFundEntity in project head by mifos.
the class LoanPrdPersistence method getLoanOffering.
public LoanOfferingBO getLoanOffering(final Short loanOfferingId, final Short localeId) throws PersistenceException {
LoanOfferingBO loanOffering = getPersistentObject(LoanOfferingBO.class, loanOfferingId);
Hibernate.initialize(loanOffering);
Hibernate.initialize(loanOffering.getCurrency());
loanOffering.getPrdCategory().getProductCategoryName();
loanOffering.getPrincipalGLcode().getGlcode();
loanOffering.getInterestGLcode().getGlcode();
if (loanOffering.getLoanOfferingFunds() != null && loanOffering.getLoanOfferingFunds().size() > 0) {
for (LoanOfferingFundEntity loanOfferingFund : loanOffering.getLoanOfferingFunds()) {
loanOfferingFund.getFund().getFundName();
}
}
if (loanOffering.getLoanOfferingFees() != null && loanOffering.getLoanOfferingFees().size() > 0) {
for (LoanOfferingFeesEntity prdOfferingFees : loanOffering.getLoanOfferingFees()) {
prdOfferingFees.getFees().getFeeName();
}
}
return loanOffering;
}
use of org.mifos.accounts.productdefinition.business.LoanOfferingFundEntity in project head by mifos.
the class LegacyLoanDao method getLoanOffering.
public LoanOfferingBO getLoanOffering(final Short loanOfferingId, final Short localeId) throws PersistenceException {
LoanOfferingBO loanOffering = getPersistentObject(LoanOfferingBO.class, loanOfferingId);
if (loanOffering.getLoanOfferingFunds() != null && loanOffering.getLoanOfferingFunds().size() > 0) {
for (LoanOfferingFundEntity loanOfferingFund : loanOffering.getLoanOfferingFunds()) {
loanOfferingFund.getFund().getFundId();
loanOfferingFund.getFund().getFundName();
}
}
return loanOffering;
}
Aggregations