/* * iDART: The Intelligent Dispensing of Antiretroviral Treatment * Copyright (C) 2006 Cell-Life * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version * 2 for more details. * * You should have received a copy of the GNU General Public License version 2 * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ package org.celllife.idart.database.hibernate; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; /** */ @Entity public class NationalClinics { @Id @GeneratedValue private Integer id; @Column(nullable = false) private String province; @Column(nullable = false) private String district; @Column(nullable = false) private String subDistrict; @Column(unique = true, nullable = false) private String facilityName; @Column(nullable = false) private String facilityType; public NationalClinics() { super(); } /** * @return the id */ public int getId() { return id; } /** * @param id * the id to set */ public void setId(int id) { this.id = id; } /** * @return the province */ public String getProvince() { return province; } /** * @param province * the province to set */ public void setProvince(String province) { this.province = province; } /** * @return the district */ public String getDistrict() { return district; } /** * @param district * the district to set */ public void setDistrict(String district) { this.district = district; } /** * @return the subDistrict */ public String getSubDistrict() { return subDistrict; } /** * @param subDistrict * the subDistrict to set */ public void setSubDistrict(String subDistrict) { this.subDistrict = subDistrict; } /** * @return the facilityName */ public String getFacilityName() { return facilityName; } /** * @param facilityName * the facilityName to set */ public void setFacilityName(String facilityName) { this.facilityName = facilityName; } /** * @return the facilityType */ public String getFacilityType() { return facilityType; } /** * @param facilityType * the facilityType to set */ public void setFacilityType(String facilityType) { this.facilityType = facilityType; } }