package info.bukova.isspst.data;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

@MappedSuperclass
public abstract class BaseSimpleData implements DataModel {

	@Id
	@Column(name="ID")
    @GeneratedValue
	private int id;
	@Column(name="CREATED")
	private Date created;
	@Column(name="MODIFIED")
	private Date modified;
	@Transient
	private boolean valid;
	
	@Override
	public int getId() {
		return id;
	}
	
	@Override
	public void setId(int id) {
		this.id = id;
	}
	
	@Override
	public Date getCreated() {
		return created;
	}
	
	@Override
	public void setCreated(Date created) {
		this.created = created;
	}
	
	@Override
	public Date getModified() {
		return modified;
	}
	
	@Override
	public void setModified(Date modified) {
		this.modified = modified;
	}
	
	@Override
	public boolean isValid() {
		return valid;
	}
	
	@Override
	public void setValid(boolean valid) {
		this.valid = valid;
	}
	
}
