Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

on update current_timestamp jpa

@Temporal(TemporalType.TIMESTAMP)
@Column(name = "edit_timestamp", 
        updatable = false
        columnDefinition="TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
private Date editTimestamp;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #jpa
ADD COMMENT
Topic
Name
7+1 =