package net.ihe.xcpd.init.action; import net.ihe.xcpd.init.model.*; import org.jboss.seam.annotations.Name; import org.jboss.seam.framework.EntityHome; /** * @author abderrazek boufahja */ @Name("homeCommunityHome") public class HomeCommunityHome extends EntityHome { public void setHomeCommunityId(Integer id) { setId(id); } public Integer getHomeCommunityId() { return (Integer) getId(); } @Override protected HomeCommunity createInstance() { HomeCommunity homeCommunity = new HomeCommunity(); return homeCommunity; } public void load() { if (isIdDefined()) { wire(); } } public void wire() { getInstance(); } public boolean isWired() { return true; } public HomeCommunity getDefinedInstance() { return isIdDefined() ? getInstance() : null; } }