[
https://issues.apache.org/jira/browse/FINERACT-2410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18048875#comment-18048875
]
Adam Saghy commented on FINERACT-2410:
--------------------------------------
[~yvana] Please run this: `./gradlew spotlessApply spotbugsMain spotbugsTest
checkstyleMain checkstyleTest`
> Rework ProgressiveEMICalculator to work only with DTOs
> ------------------------------------------------------
>
> Key: FINERACT-2410
> URL: https://issues.apache.org/jira/browse/FINERACT-2410
> Project: Apache Fineract
> Issue Type: Improvement
> Reporter: Adam Saghy
> Assignee: Ahmed Adel
> Priority: Major
> Fix For: 1.15.0
>
>
> EmiCalculator should only accept pure DTOs (no JPA entities, not even part of
> jpa entities like “Embeddable classes”), which only contains the required
> data. The argument DTOs should also not contain any entities, embeddable
> classes, etc.
> Example:
> * {{LoanScheduleModelRepaymentPeriod}} is a DTO, but it contains entity:
> {{LoanInterestRecalcualtionAdditionalDetails}}
> * {{LoanRepaymentScheduleInstallment}} is a JPA entity, should not be
> accepted as argument.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)