package com.idega.core.contact.data; import java.sql.SQLException; import com.idega.core.location.data.*; /** * Title: IW Core * Description: * Copyright: Copyright (c) 2001 * Company: idega.is * @author 2000 - idega team - <a href="mailto:gummi@idega.is">Gu�mundur �g�st S�mundsson</a> * @version 1.0 */ public class CountryCodeBMPBean extends com.idega.data.GenericEntity implements com.idega.core.contact.data.CountryCode { public CountryCodeBMPBean(){ super(); } public CountryCodeBMPBean(int id)throws SQLException{ super(id); } public void initializeAttributes() { this.addAttribute(this.getIDColumnName()); this.addAttribute(getColumnNameCountryCode(),"Landsn�mer",true,true,String.class,10); this.addAttribute(getColumnNameCountryId(),"Land",true,true,Integer.class,"many-to-one",Country.class); } public String getEntityName() { return "ic_country_code"; } public static String getColumnNameCountryCode(){return "country_code";} public static String getColumnNameCountryId(){return "ic_country_id";} }