Class GeoPtConverter

java.lang.Object
com.maplander.backend.repository.converter.GeoPtConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<com.utils.geo.GeoPt,org.locationtech.jts.geom.Point>

public class GeoPtConverter extends Object implements jakarta.persistence.AttributeConverter<com.utils.geo.GeoPt,org.locationtech.jts.geom.Point>
  • Constructor Details

    • GeoPtConverter

      public GeoPtConverter()
  • Method Details

    • convertToDatabaseColumn

      public org.locationtech.jts.geom.Point convertToDatabaseColumn(com.utils.geo.GeoPt geoPt)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<com.utils.geo.GeoPt,org.locationtech.jts.geom.Point>
    • convertToEntityAttribute

      public com.utils.geo.GeoPt convertToEntityAttribute(org.locationtech.jts.geom.Point point)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<com.utils.geo.GeoPt,org.locationtech.jts.geom.Point>