FINERACT-1103 - Resolve org.eclipse.persistence.exceptions.EntityManagerSetupException @creditBurea
This commit is contained in:
committed by
Yemdjih Kaze Nasser
parent
435c5ebbcd
commit
98fd8d24c9
-15
@@ -18,11 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.apache.fineract.infrastructure.creditbureau.domain;
|
package org.apache.fineract.infrastructure.creditbureau.domain;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.persistence.CascadeType;
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.OneToMany;
|
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import org.apache.fineract.infrastructure.core.api.JsonCommand;
|
import org.apache.fineract.infrastructure.core.api.JsonCommand;
|
||||||
import org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
|
import org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
|
||||||
@@ -39,16 +36,12 @@ public class CreditBureau extends AbstractPersistableCustom {
|
|||||||
|
|
||||||
private String implementationKey;
|
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,
|
public CreditBureau(String name, String product, String country, String implementationKey,
|
||||||
List<CreditBureauLoanProductMapping> CreditBureauLoanProductMapping) {
|
List<CreditBureauLoanProductMapping> CreditBureauLoanProductMapping) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.product = product;
|
this.product = product;
|
||||||
this.country = country;
|
this.country = country;
|
||||||
this.implementationKey = implementationKey;
|
this.implementationKey = implementationKey;
|
||||||
this.CreditBureauLoanProductMapping = CreditBureauLoanProductMapping;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public CreditBureau() {
|
public CreditBureau() {
|
||||||
@@ -98,12 +91,4 @@ public class CreditBureau extends AbstractPersistableCustom {
|
|||||||
this.implementationKey = implementationKey;
|
this.implementationKey = implementationKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<CreditBureauLoanProductMapping> getCreditBureauLpMapping() {
|
|
||||||
return this.CreditBureauLoanProductMapping;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCreditBureauLpMapping(List<CreditBureauLoanProductMapping> CreditBureauLoanProductMapping) {
|
|
||||||
this.CreditBureauLoanProductMapping = CreditBureauLoanProductMapping;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user