FINERACT-1103 - Resolve org.eclipse.persistence.exceptions.EntityManagerSetupException @creditBurea

This commit is contained in:
xurror
2020-08-03 14:06:07 +01:00
committed by Yemdjih Kaze Nasser
parent 435c5ebbcd
commit 98fd8d24c9
@@ -18,11 +18,8 @@
*/
package org.apache.fineract.infrastructure.creditbureau.domain;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.apache.fineract.infrastructure.core.api.JsonCommand;
import org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
@@ -39,16 +36,12 @@ public class CreditBureau extends AbstractPersistableCustom {
private String implementationKey;
@OneToMany(mappedBy = "organisation_creditbureau", cascade = CascadeType.ALL)
private List<CreditBureauLoanProductMapping> CreditBureauLoanProductMapping = new ArrayList<>();
public CreditBureau(String name, String product, String country, String implementationKey,
List<CreditBureauLoanProductMapping> CreditBureauLoanProductMapping) {
this.name = name;
this.product = product;
this.country = country;
this.implementationKey = implementationKey;
this.CreditBureauLoanProductMapping = CreditBureauLoanProductMapping;
}
public CreditBureau() {
@@ -98,12 +91,4 @@ public class CreditBureau extends AbstractPersistableCustom {
this.implementationKey = implementationKey;
}
public List<CreditBureauLoanProductMapping> getCreditBureauLpMapping() {
return this.CreditBureauLoanProductMapping;
}
public void setCreditBureauLpMapping(List<CreditBureauLoanProductMapping> CreditBureauLoanProductMapping) {
this.CreditBureauLoanProductMapping = CreditBureauLoanProductMapping;
}
}