Class SexConverter

Object
SexConverter
All Implemented Interfaces:
AttributeConverter<Sex,String>

public class SexConverter extends Object implements AttributeConverter<Sex,String>
  • Constructor Details

    • SexConverter

      public SexConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(Sex vehicle)
      Specified by:
      convertToDatabaseColumn in interface AttributeConverter<Sex,String>
    • convertToEntityAttribute

      public Sex convertToEntityAttribute(String shortName)
      Specified by:
      convertToEntityAttribute in interface AttributeConverter<Sex,String>