title: In Spring Data JDBC bypass @CreatedDate and @LastModifiedDate
body: <p>I am using <a href="https://spring.io/projects/spring-data-jdbc" rel="nofollow noreferrer">Spring Data JDBC</a>.</p>
  <p>I have an entity that has fields annotated with <a href="https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/annotation/CreatedDate.html" rel="nofollow noreferrer"><code>@CreatedDate</code></a> and <a href="https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/annotation/LastModifiedDate.html" rel="nofollow noreferrer"><code>@LastModifiedDate</code></a>.</p>
  <p>However, in some cases I want to set these two fields manually.</p>
  <p>Is there a way to bypass <code>@CreatedDate</code> and <code>@LastModifiedDate</code> in some cases without removing the annotations from the entity? Or is there a callback that I can add before the entity gets saved?</p>