// Path: src/java/is/idega/block/nationalregister/business/NationalRegisterConstants.java
// public class NationalRegisterConstants {
// 	public static final String FATE_DECEASED = "deceased"; // LST
// 
// 	public final static String FATE_CHANGE_PERSONAL_ID = "change_pid"; // "BRFD";
// 
// 	public final static String FATE_REMOVED = "removed"; // "BRFL";
// 	// private final static String FATE_CHANGE_OLD_ID = "BRNN";
// }


import java.util.Collection;
import javax.ejb.FinderException;
import is.idega.block.nationalregister.business.NationalRegisterConstants;
import com.idega.data.GenericEntity;
import com.idega.data.IDOLookup;
import com.idega.data.IDOQuery;
package is.idega.block.nationalregister.data;





public class NationalRegisterFateBMPBean extends GenericEntity implements
		NationalRegisterFate {

	protected final static String ENTITY_NAME = "reg_nat_is_fate";

	protected final static String COLUMN_FATE_CODE = "fate_code";

	protected final static String COLUMN_FATE_STRING = "fate_string";

	public String getEntityName() {
		return ENTITY_NAME;
	}

	public void initializeAttributes() {
		addAttribute(getIDColumnName());
		addAttribute(COLUMN_FATE_CODE, "fate code", String.class);
		addAttribute(COLUMN_FATE_STRING, "fate string", String.class);
	}

	public void insertStartData() throws Exception {
		try {
			NationalRegisterFate deceased = ((NationalRegisterFateHome) IDOLookup
					.getHome(NationalRegisterFate.class)).create();
// Path: src/java/is/idega/block/nationalregister/business/NationalRegisterConstants.java
// public class NationalRegisterConstants {
// 	public static final String FATE_DECEASED = "deceased"; // LST
// 
// 	public final static String FATE_CHANGE_PERSONAL_ID = "change_pid"; // "BRFD";
// 
// 	public final static String FATE_REMOVED = "removed"; // "BRFL";
// 	// private final static String FATE_CHANGE_OLD_ID = "BRNN";
// }


// Path: src/java/is/idega/block/nationalregister/data/NationalRegisterFateBMPBean.java
import java.util.Collection;
import javax.ejb.FinderException;
import is.idega.block.nationalregister.business.NationalRegisterConstants;
import com.idega.data.GenericEntity;
import com.idega.data.IDOLookup;
import com.idega.data.IDOQuery;

package is.idega.block.nationalregister.data;





public class NationalRegisterFateBMPBean extends GenericEntity implements
		NationalRegisterFate {

	protected final static String ENTITY_NAME = "reg_nat_is_fate";

	protected final static String COLUMN_FATE_CODE = "fate_code";

	protected final static String COLUMN_FATE_STRING = "fate_string";

	public String getEntityName() {
		return ENTITY_NAME;
	}

	public void initializeAttributes() {
		addAttribute(getIDColumnName());
		addAttribute(COLUMN_FATE_CODE, "fate code", String.class);
		addAttribute(COLUMN_FATE_STRING, "fate string", String.class);
	}

	public void insertStartData() throws Exception {
		try {
			NationalRegisterFate deceased = ((NationalRegisterFateHome) IDOLookup
					.getHome(NationalRegisterFate.class)).create();
			deceased.setFateCode(NationalRegisterConstants.FATE_DECEASED);