I have three entities called Customer(Account), Eligible Loan, and Existing Loan. Both Eligible Loan and Existing Loan have a field called Lending Bank (which is another entity). In the Customer entity, when I check a box to view Eligible Loans, based on certain conditions in the Customer entity, Eligible Loan records are created.
However, while creating these Eligible Loans, I want to ensure that the Lending Bank in the Eligible Loan does not already exist in any of the Existing Loans. How can I implement this check?
I have OneToMany relationship from Customer to both Eligible & Existing Loans. Both records in Bottom panel of Customer entity (Account)
However, while creating these Eligible Loans, I want to ensure that the Lending Bank in the Eligible Loan does not already exist in any of the Existing Loans. How can I implement this check?
I have OneToMany relationship from Customer to both Eligible & Existing Loans. Both records in Bottom panel of Customer entity (Account)
Comment