package com.palmnest.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class BaseModel implements java.io.Serializable {

	private static final long serialVersionUID = 8097913033973531368L;

	// Fields
	private Long id;

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

	/**
	 * minimal constructor
	 */
	public BaseModel(Long id) {
		this.id = id;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

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

}