Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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() {
Expand Down Expand Up @@ -98,12 +91,4 @@ public void setImplementationKey(String implementationKey) {
this.implementationKey = implementationKey;
}

public List<CreditBureauLoanProductMapping> getCreditBureauLpMapping() {
return this.CreditBureauLoanProductMapping;
}

public void setCreditBureauLpMapping(List<CreditBureauLoanProductMapping> CreditBureauLoanProductMapping) {
this.CreditBureauLoanProductMapping = CreditBureauLoanProductMapping;
}

}