title: How to set @CreatedDate in the past (for testing)
body: <p>My <strong>spring-data-jpa</strong> backend has a class that populates the (test) database with a lot of test data. The class usese the spring data repositories to create entities. All my entities have a field annotated with <code>@CreatedData</code> and the corresponding <code>@EntityListeners(AuditingEntityListener.class)</code> annotation on the model class. This works fine so far.  dateCreated is automatically set correctly.</p>
  
  <p>But when running <strong>Junit test</strong> I sometimes need to create a (test) object with a dateCreated in the past. How can I archive this?  Only via plain JDBC?</p>