package org.domain.zzzzzz2.session;

import org.domain.zzzzzz2.entity.*;
import java.util.ArrayList;
import java.util.List;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("employeesHome")
public class EmployeesHome extends EntityHome<Employees> {

	public void setEmployeesEmployeenumber(Integer id) {
		setId(id);
	}

	public Integer getEmployeesEmployeenumber() {
		return (Integer) getId();
	}

	@Override
	protected Employees createInstance() {
		Employees employees = new Employees();
		return employees;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Employees getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	public List<Customers> getCustomerses() {
		return getInstance() == null ? null : new ArrayList<Customers>(
				getInstance().getCustomerses());
	}

}
