package com.tjk.entity;

import java.sql.Timestamp;

/**
 * UserAddress entity. @author MyEclipse Persistence Tools
 */

public class Address implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 2140634564575333967L;
	private Integer id;
	private Integer uid;
	private Integer province = 0;
	private Integer city = 0;
	private String address;
	private String postCode;
	private String contact;
	private String phone;
	private Integer isDefault;
	private Timestamp postTime;
    private Integer addressId;
	
	// Constructors


	/** default constructor */
	public Address() {
	}

	/** full constructor */
	public Address(Integer uid, Integer province, Integer city,
			String address, String postCode, String contact, String phone,
			Integer isDefault, Timestamp postTime) {
		this.uid = uid;
		this.province = province;
		this.city = city;
		this.address = address;
		this.postCode = postCode;
		this.contact = contact;
		this.phone = phone;
		this.isDefault = isDefault;
		this.postTime = postTime;
	}

	// Property accessors

	public Integer getAddressId() {
		return addressId;
	}

	public void setAddressId(Integer addressId) {
		this.addressId = addressId;
	}
	
	public Integer getId() {
		return this.id;
	}

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

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getProvince() {
		return this.province;
	}

	public void setProvince(Integer province) {
		this.province = province;
	}

	public Integer getCity() {
		return this.city;
	}

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

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPostCode() {
		return this.postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getPhone() {
		return this.phone;
	}

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

	public Integer getIsDefault() {
		return this.isDefault;
	}

	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}

	public Timestamp getPostTime() {
		return this.postTime;
	}

	public void setPostTime(Timestamp postTime) {
		this.postTime = postTime;
	}

}