I have the following class description snippet:
...
@Column(name = \"invalidate_token_date\")
@Temporal(TemporalType.TIMESTAMP)
private LocalDateTime inv
For any Hibernate 5.x users, there is
org.hibernate
hibernate-java8
5.0.0.Final
You don't need to do anything else. Just add the dependency, and the Java 8 time types should work like any other basic types, no annotations required.
private LocalDateTime invalidateTokenDate;
Note: this won't save to timestamp type though. Testing with MySQL, it saves to datetime type.