@CreationTimestamp doesn't work with H2 and Oracle10gDialect

Viewed 524

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?

0 Answers
Related