Search in sources :

Example 1 with LoanOfferingFundEntity

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;
}
Also used : LoanOfferingFeesEntity(org.mifos.accounts.productdefinition.business.LoanOfferingFeesEntity) LoanOfferingFundEntity(org.mifos.accounts.productdefinition.business.LoanOfferingFundEntity) LoanOfferingBO(org.mifos.accounts.productdefinition.business.LoanOfferingBO)

Example 2 with LoanOfferingFundEntity

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;
}
Also used : LoanOfferingFundEntity(org.mifos.accounts.productdefinition.business.LoanOfferingFundEntity) LoanOfferingBO(org.mifos.accounts.productdefinition.business.LoanOfferingBO)

Aggregations

LoanOfferingBO (org.mifos.accounts.productdefinition.business.LoanOfferingBO)2 LoanOfferingFundEntity (org.mifos.accounts.productdefinition.business.LoanOfferingFundEntity)2 LoanOfferingFeesEntity (org.mifos.accounts.productdefinition.business.LoanOfferingFeesEntity)1