Class PostgreSQLIntervalType

java.lang.Object
io.hypersistence.utils.hibernate.type.ImmutableType<Duration>
io.hypersistence.utils.hibernate.type.interval.PostgreSQLIntervalType
All Implemented Interfaces:
Serializable, org.hibernate.type.Type, org.hibernate.usertype.UserType<Duration>

public class PostgreSQLIntervalType extends ImmutableType<Duration>
Maps a Java Duration object to a PostgreSQL Interval column type.

For more details about how to use it, check out this article on vladmihalcea.com.

Since:
2.5.1
Author:
Jan-Willem Gmelig Meyling, Vlad Mihalcea
See Also:
  • Field Details

  • Constructor Details

    • PostgreSQLIntervalType

      public PostgreSQLIntervalType()
    • PostgreSQLIntervalType

      public PostgreSQLIntervalType(org.hibernate.type.spi.TypeBootstrapContext typeBootstrapContext)
  • Method Details