In my SQL Server 2000 database, I have a timestamp (in function not in data type) column of type DATETIME named lastTouched set to getdate()<
DATETIME
lastTouched
getdate()<
Add the @CreationTimestamp annotation:
@CreationTimestamp
@CreationTimestamp @Column(name="timestamp", nullable = false, updatable = false, insertable = false) private Timestamp timestamp;