package database;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@MappedSuperclass
public class Model {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Temporal(TemporalType.TIMESTAMP)
	private Date dateCreated = new Date();

	public Long getId() {
		return id;
	}

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

	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

}

@@ -265,16 +265,118 @@
 lType;%0A%0A
+/**%0A * Base class for custom entity models.%0A * %0A * @author Fernando Felix do Nascimento Junior%0A *%0A */%0A
 @MappedS
@@ -560,16 +560,92 @@
 ate();%0A%0A
+%09@Temporal(TemporalType.TIMESTAMP)%0A%09private Date dateUpdated = new Date();%0A%0A
 %09public 
@@ -828,24 +828,24 @@
 eCreated) %7B%0A
-
 %09%09this.dateC
@@ -870,10 +870,154 @@
 ed;%0A%09%7D%0A%0A
+%09public Date getDateUpdated() %7B%0A%09%09return dateUpdated;%0A%09%7D%0A%0A%09public void setDateUpdated(Date dateUpdated) %7B%0A%09%09this.dateUpdated = dateUpdated;%0A%09%7D%0A%0A
 %7D%0A

Add Model#dateUpdated