I have a TIMESTAMP Columns in my MySQL database. This is the relevant section of the entity class:
@Basic(optional = false) @NotNull @Column(name = "created_date") @Temporal(TemporalType.TIMESTAMP) private Date createdDate;
My problem is that it updates to a new TIMESTAMP automatically every time I persist anything to that row in the database. I am explicitly NOT updating that value but it updates itself. How do I prevent that from happening so it simply retains the original value entered?