Commit 44501a24 authored by Selvakumar Kamatchinathan's avatar Selvakumar Kamatchinathan
Browse files

changed Timestamp to Date and temporal

parent e58947bf
......@@ -30,9 +30,11 @@ import javax.persistence.EntityListeners;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.sql.Timestamp;
import java.util.Date;
@Entity
@EntityListeners({AuditingEntityListener.class, EntityEventListener.class})
......@@ -90,10 +92,12 @@ public class Phenotype implements IdentifiableEntity<String> {
@CreatedDate
@Column(updatable = false)
private Timestamp createdDate;
@Temporal(TemporalType.TIMESTAMP)
private Date createdDate;
@LastModifiedDate
private Timestamp lastModifiedDate;
@Temporal(TemporalType.TIMESTAMP)
private Date lastModifiedDate;
public Phenotype() {
}
......
......@@ -30,9 +30,11 @@ import javax.persistence.EntityListeners;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.sql.Timestamp;
import java.util.Date;
@Entity
@EntityListeners({AuditingEntityListener.class, EntityEventListener.class})
......@@ -97,10 +99,12 @@ public class Property implements IdentifiableEntity<String> {
@CreatedDate
@Column(updatable = false)
private Timestamp createdDate;
@Temporal(TemporalType.TIMESTAMP)
private Date createdDate;
@LastModifiedDate
private Timestamp lastModifiedDate;
@Temporal(TemporalType.TIMESTAMP)
private Date lastModifiedDate;
public Property() {
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment