LoanProduct filtering changes

This commit is contained in:
John Woodlock
2012-05-25 21:10:40 +10:00
parent a0680ee34b
commit 3bee9582e1
3 changed files with 68 additions and 61 deletions
@@ -7,9 +7,11 @@ import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.map.annotate.JsonFilter;
import org.joda.time.DateTime;
@XmlRootElement(name = "loanProduct")
@JsonFilter("myFilter")
public class LoanProductData implements Serializable {
private Long id;
@@ -1,28 +0,0 @@
package org.mifosng.data;
import java.util.ArrayList;
import java.util.Collection;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class LoanProductList {
private Collection<LoanProductData> products = new ArrayList<LoanProductData>();
protected LoanProductList() {
//
}
public LoanProductList(final Collection<LoanProductData> products) {
this.products = products;
}
public Collection<LoanProductData> getProducts() {
return this.products;
}
public void setProducts(final Collection<LoanProductData> products) {
this.products = products;
}
}