package com.microstar.tap3.db;
// Generated Jun 12, 2017 8:29:18 AM by Hibernate Tools 4.3.1.Final

import org.hibernate.annotations.GenericGenerator;
import javax.persistence.GeneratedValue;
import org.hibernate.envers.RevisionEntity;
import org.hibernate.envers.Audited;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Address generated by hbm2java
 */
@Entity @Audited
@Table(name = "Address", uniqueConstraints = @UniqueConstraint(columnNames = "SFDCId"))
public class Address implements java.io.Serializable
{

	private String	id;
	private String	addressTypeId;
	private String	addressName;
	private String	address1;
	private String	address2;
	private String	address3;
	private String	city;
	private String	stateOrProvince;
	private String	postalCode;
	private String	country;
	private Double	lat;
	private Double	lon;
	private String	sfdcid;
	private String	notes;
	private boolean	defaultForType;

	public Address()
	{
	}

	public Address(String id, String addressTypeId, String addressName, String address1, String city,
			String stateOrProvince, String postalCode, boolean defaultForType)
	{
		this.id = id;
		this.addressTypeId = addressTypeId;
		this.addressName = addressName;
		this.address1 = address1;
		this.city = city;
		this.stateOrProvince = stateOrProvince;
		this.postalCode = postalCode;
		this.defaultForType = defaultForType;
	}

	public Address(String id, String addressTypeId, String addressName, String address1, String address2,
			String address3, String city, String stateOrProvince, String postalCode, String country, Double lat,
			Double lon, String sfdcid, String notes, boolean defaultForType)
	{
		this.id = id;
		this.addressTypeId = addressTypeId;
		this.addressName = addressName;
		this.address1 = address1;
		this.address2 = address2;
		this.address3 = address3;
		this.city = city;
		this.stateOrProvince = stateOrProvince;
		this.postalCode = postalCode;
		this.country = country;
		this.lat = lat;
		this.lon = lon;
		this.sfdcid = sfdcid;
		this.notes = notes;
		this.defaultForType = defaultForType;
	}

	@Id @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid2")

	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId()
	{
		return this.id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	@Column(name = "AddressTypeId", nullable = false, length = 36)
	public String getAddressTypeId()
	{
		return this.addressTypeId;
	}

	public void setAddressTypeId(String addressTypeId)
	{
		this.addressTypeId = addressTypeId;
	}

	@Column(name = "AddressName", nullable = false, length = 100)
	public String getAddressName()
	{
		return this.addressName;
	}

	public void setAddressName(String addressName)
	{
		this.addressName = addressName;
	}

	@Column(name = "Address1", nullable = false, length = 50)
	public String getAddress1()
	{
		return this.address1;
	}

	public void setAddress1(String address1)
	{
		this.address1 = address1;
	}

	@Column(name = "Address2", length = 50)
	public String getAddress2()
	{
		return this.address2;
	}

	public void setAddress2(String address2)
	{
		this.address2 = address2;
	}

	@Column(name = "Address3", length = 50)
	public String getAddress3()
	{
		return this.address3;
	}

	public void setAddress3(String address3)
	{
		this.address3 = address3;
	}

	@Column(name = "City", nullable = false, length = 30)
	public String getCity()
	{
		return this.city;
	}

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

	@Column(name = "StateOrProvince", nullable = false, length = 20)
	public String getStateOrProvince()
	{
		return this.stateOrProvince;
	}

	public void setStateOrProvince(String stateOrProvince)
	{
		this.stateOrProvince = stateOrProvince;
	}

	@Column(name = "PostalCode", nullable = false, length = 12)
	public String getPostalCode()
	{
		return this.postalCode;
	}

	public void setPostalCode(String postalCode)
	{
		this.postalCode = postalCode;
	}

	@Column(name = "Country", length = 20)
	public String getCountry()
	{
		return this.country;
	}

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

	@Column(name = "Lat", precision = 22, scale = 0)
	public Double getLat()
	{
		return this.lat;
	}

	public void setLat(Double lat)
	{
		this.lat = lat;
	}

	@Column(name = "Lon", precision = 22, scale = 0)
	public Double getLon()
	{
		return this.lon;
	}

	public void setLon(Double lon)
	{
		this.lon = lon;
	}

	@Column(name = "SFDCId", unique = true, length = 20)
	public String getSfdcid()
	{
		return this.sfdcid;
	}

	public void setSfdcid(String sfdcid)
	{
		this.sfdcid = sfdcid;
	}

	@Column(name = "Notes", length = 16777215)
	public String getNotes()
	{
		return this.notes;
	}

	public void setNotes(String notes)
	{
		this.notes = notes;
	}

	@Column(name = "DefaultForType", nullable = false)
	public boolean isDefaultForType()
	{
		return this.defaultForType;
	}

	public void setDefaultForType(boolean defaultForType)
	{
		this.defaultForType = defaultForType;
	}

}
