I have a class Request:
@Entity
public class Request {
@CreationTimestamp
private Date createdDate;
}
And when I'm testing it using:
Request request = requestRepository.save(new Request());
request.getCreatedDate();
for some reason getCreatedDate is still null.
I'm using H2 with Oracle10gDialect for tests (it was working when I was using a default dialect for H2).
Do you know how can I fix it?