- All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Period,String>
public class PeriodConverter
extends Object
implements jakarta.persistence.AttributeConverter<Period,String>
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PeriodConverter
public PeriodConverter()
-
Method Details
-
convertToDatabaseColumn
@Nullable
public String convertToDatabaseColumn(Period period)
- Specified by:
convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Period,String>
-
convertToEntityAttribute
@Nullable
public Period convertToEntityAttribute(String dbData)
- Specified by:
convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Period,String>