Skip to content

Commit

Permalink
fix modal message create at
Browse files Browse the repository at this point in the history
  • Loading branch information
Laki Sik committed Sep 20, 2016
1 parent 4ceb82c commit 5a1834e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/ahancer/rr/models/ProposalMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class ProposalMessage implements Serializable {
private String referenceId;

@Temporal(TemporalType.TIMESTAMP)
@Column(name = "createdAt",updatable=false)
@Column(name = "createdAt",updatable=false,insertable=true)
private Date createdAt;

@JsonIgnore
Expand All @@ -85,7 +85,7 @@ public class ProposalMessage implements Serializable {

@PrePersist
protected void onCreate() {
updatedAt = createdAt = new Date();
updatedAt = new Date();
}

@PreUpdate
Expand Down

0 comments on commit 5a1834e

Please sign in to comment.