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 Details

    • ExcutionTypeConverter

      public ExcutionTypeConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(ExecutionType attribute)
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<ExecutionType,String>
    • convertToEntityAttribute

      public ExecutionType convertToEntityAttribute(String dbData)
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<ExecutionType,String>