java.lang.Object
org.apache.logging.log4j.core.appender.db.jpa.converter.InstantAttributeConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<Instant,String>
public class InstantAttributeConverter
extends Object
implements javax.persistence.AttributeConverter<Instant,String>
A JPA 2.1 attribute converter for
Instant
s in
LogEvent
s. This
converter is capable of converting both to and from
String
s.
-
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
-
InstantAttributeConverter
public InstantAttributeConverter()
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumn
in interface javax.persistence.AttributeConverter<Instant,String>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttribute
in interface javax.persistence.AttributeConverter<Instant,String>