package org.domain.zzzzzz2.entity;

// Generated 01.03.2010 19:13:35 by Hibernate Tools 3.2.6.CR1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * Offices generated by hbm2java
 */
@Entity
@Table(name = "OFFICES", schema = "PUBLIC")
public class Offices implements java.io.Serializable {

	private String officecode;
	private String city;
	private String phone;
	private String addressline1;
	private String addressline2;
	private String state;
	private String country;
	private String postalcode;
	private String territory;

	public Offices() {
	}

	public Offices(String officecode, String city, String phone,
			String addressline1, String country, String postalcode,
			String territory) {
		this.officecode = officecode;
		this.city = city;
		this.phone = phone;
		this.addressline1 = addressline1;
		this.country = country;
		this.postalcode = postalcode;
		this.territory = territory;
	}

	public Offices(String officecode, String city, String phone,
			String addressline1, String addressline2, String state,
			String country, String postalcode, String territory) {
		this.officecode = officecode;
		this.city = city;
		this.phone = phone;
		this.addressline1 = addressline1;
		this.addressline2 = addressline2;
		this.state = state;
		this.country = country;
		this.postalcode = postalcode;
		this.territory = territory;
	}

	@Id
	@Column(name = "OFFICECODE", unique = true, nullable = false, length = 10)
	@NotNull
	@Length(max = 10)
	public String getOfficecode() {
		return this.officecode;
	}

	public void setOfficecode(String officecode) {
		this.officecode = officecode;
	}

	@Column(name = "CITY", nullable = false, length = 50)
	@NotNull
	@Length(max = 50)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "PHONE", nullable = false, length = 50)
	@NotNull
	@Length(max = 50)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "ADDRESSLINE1", nullable = false, length = 50)
	@NotNull
	@Length(max = 50)
	public String getAddressline1() {
		return this.addressline1;
	}

	public void setAddressline1(String addressline1) {
		this.addressline1 = addressline1;
	}

	@Column(name = "ADDRESSLINE2", length = 50)
	@Length(max = 50)
	public String getAddressline2() {
		return this.addressline2;
	}

	public void setAddressline2(String addressline2) {
		this.addressline2 = addressline2;
	}

	@Column(name = "STATE", length = 50)
	@Length(max = 50)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Column(name = "COUNTRY", nullable = false, length = 50)
	@NotNull
	@Length(max = 50)
	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	@Column(name = "POSTALCODE", nullable = false, length = 15)
	@NotNull
	@Length(max = 15)
	public String getPostalcode() {
		return this.postalcode;
	}

	public void setPostalcode(String postalcode) {
		this.postalcode = postalcode;
	}

	@Column(name = "TERRITORY", nullable = false, length = 10)
	@NotNull
	@Length(max = 10)
	public String getTerritory() {
		return this.territory;
	}

	public void setTerritory(String territory) {
		this.territory = territory;
	}

}
