My entity class:
@Entity @Table(name = \"user\") public class User implements Serializable { private static final long serialVersionUID = 1L; @Id
import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.UpdateTimestamp; . . . @CreationTimestamp private Date created; @UpdateTimestamp private Date modified;