What is the use of the @Temporal annotation in Hibernate?

前端 未结 7 950
北海茫月
北海茫月 2020-11-30 18:06

The Hibernate Documentation has the information below for the @Temporal annotation:

In plain Java APIs, the temporal precision of time is

7条回答
  •  一整个雨季
    2020-11-30 18:26

    I use Hibernate 5.2 and @Temporal is not required anymore.
    java.util.date, sql.date, time.LocalDate are stored into DB with appropriate datatype as Date/timestamp.

提交回复
热议问题