Class ExcutionTypeConverter
java.lang.Object
org.imageconverter.util.jpaconverters.ExcutionTypeConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<ExecutionType,
String>
public class ExcutionTypeConverter
extends Object
implements javax.persistence.AttributeConverter<ExecutionType,String>
Converter for
ExecutionType
enum to String for JPA framework.- Author:
- Fernando Romulo da Silva
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(ExecutionType attribute) convertToEntityAttribute
(String dbData)
-
Constructor Details
-
ExcutionTypeConverter
public ExcutionTypeConverter()
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumn
in interfacejavax.persistence.AttributeConverter<ExecutionType,
String>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttribute
in interfacejavax.persistence.AttributeConverter<ExecutionType,
String>
-