com.holonplatform.datastore.jpa.converters.datetime

## Class LocalTimeToTimeAttributeConverter

- java.lang.Object
- - com.holonplatform.datastore.jpa.converters.datetime.LocalTimeToTimeAttributeConverter

- All Implemented Interfaces:
    javax.persistence.AttributeConverter<LocalTime,Time>

      public class LocalTimeToTimeAttributeConverter
      extends Object
      implements javax.persistence.AttributeConverter<LocalTime,Time>

  A JPA `AttributeConverter` to enable `LocalTime` data type for entity attributes.

  This converter is automatically applyed if present in the ORM auto-scan package list.

  Attribute values are expected to be backed by a `Time`-compatible SQL type in database.

  Since:
    5.0.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LocalTimeToTimeAttributeConverter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Time` | `convertToDatabaseColumn(LocalTime attribute)`
    `LocalTime` | `convertToEntityAttribute(Time dbData)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LocalTimeToTimeAttributeConverter

          public LocalTimeToTimeAttributeConverter()

  - ### Method Detail

    - #### convertToDatabaseColumn

          public Time convertToDatabaseColumn(LocalTime attribute)

      Specified by:
        `convertToDatabaseColumn` in interface `javax.persistence.AttributeConverter<LocalTime,Time>`

    - #### convertToEntityAttribute

          public LocalTime convertToEntityAttribute(Time dbData)

      Specified by:
        `convertToEntityAttribute` in interface `javax.persistence.AttributeConverter<LocalTime,Time>`

Copyright © 2019 The Holon Platform. All rights reserved.