package org.domain.zzzzzz2.session;

import org.domain.zzzzzz2.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("paymentsList")
public class PaymentsList extends EntityQuery<Payments> {

	private static final String EJBQL = "select payments from Payments payments";

	private static final String[] RESTRICTIONS = { "lower(payments.checknumber) like lower(concat(#{paymentsList.payments.checknumber},'%'))", };

	private Payments payments = new Payments();

	public PaymentsList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Payments getPayments() {
		return payments;
	}
}
