Jakarta Persistence (JPA) Method

int secondPrecision


(Optional) The number of decimal digits to use for storing fractional seconds in a SQL time or timestamp column.

Applies only to columns of time or timestamp type.

The default value -1 indicates that fractional seconds should not be stored in a time column, or that the maximum number of digits supported by the database and JDBC driver should be stored in a timestamp column.

Default:
-1
Since:
Jakarta Persistence (JPA) 3.2