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("productlinesList")
public class ProductlinesList extends EntityQuery<Productlines> {

	private static final String EJBQL = "select productlines from Productlines productlines";

	private static final String[] RESTRICTIONS = {
			"lower(productlines.productline) like lower(concat(#{productlinesList.productlines.productline},'%'))",
			"lower(productlines.textdescription) like lower(concat(#{productlinesList.productlines.textdescription},'%'))",
			"lower(productlines.htmldescription) like lower(concat(#{productlinesList.productlines.htmldescription},'%'))", };

	private Productlines productlines = new Productlines();

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

	public Productlines getProductlines() {
		return productlines;
	}
}
