Interface HibernateOrmConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitMapping.Duration

Enclosing interface:
HibernateOrmConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitMapping

public static interface HibernateOrmConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitMapping.Duration
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String>
    The preferred JDBC type to use for storing Duration values.
  • Method Details

    • durationPreferredJdbcType

      @WithName("preferred-jdbc-type") @ConfigDocDefault("INTERVAL_SECOND") Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String> durationPreferredJdbcType()
      The preferred JDBC type to use for storing Duration values.

      Can be overridden locally using `@JdbcType`, `@JdbcTypeCode`, and similar annotations.

      Can also specify the name of the SqlTypes constant field, for example, `quarkus.hibernate-orm.mapping.type.preferred_jdbc_type=INTERVAL_SECOND`.