Class IntArrayAttributeConverter

java.lang.Object
io.mateu.mdd.core.model.util.IntArrayAttributeConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<int[],String>

public class IntArrayAttributeConverter extends Object implements javax.persistence.AttributeConverter<int[],String>
Created by miguel on 12/10/16.
  • Constructor Details

    • IntArrayAttributeConverter

      public IntArrayAttributeConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(int[] ints)
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<int[],String>
    • convertToEntityAttribute

      public int[] convertToEntityAttribute(String s)
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<int[],String>