package com.megift.set.location.entity;

import com.megift.resources.base.Entity;
import com.megift.set.location.address.entity.Address;
import com.megift.set.location.phone.entity.Phone;

/**
 * @class : Location.java<br/>
 * @company : Megift S.A<br/>
 * @user : YQ<br/>
 * @date : Feb 23, 2015<br/>
 * @update date : Feb 23, 2015<br/>
 * @update by : Feb 23, 2015<br/>
 * @version : 0.1 <br/>
 * @author Yonatan Alexis Quintero Rodriguez
 * 
 */
public class Location extends Entity {

	/**
     * 
     */
	private static final long serialVersionUID = 1L;
	private Phone phone;
	private Address address;

	public Phone getPhone() {
		return phone;
	}

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

	public Address getAddress() {
		return address;
	}

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

	/**
	 * @param id
	 */
	public Location(int id) {
		super(id);
		// TODO Auto-generated constructor stub
	}

	public Location(Address address) {
		super(0);
		this.address = address;
	}

	/**
	 * @param address
	 * @param phone
	 */
	public Location(Address address, Phone phone) {
		super(0);
		this.address = address;
		this.phone = phone;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.megift.resources.base.Entity#isEmpty()
	 */
	@Override
	public boolean isEmpty() {
		// TODO Auto-generated method stub
		return false;
	}

}
