Package io.jmix.maps.converter.wkt
Class PolygonWKTConverter
java.lang.Object
io.jmix.maps.converter.wkt.PolygonWKTConverter
- All Implemented Interfaces:
jakarta.persistence.AttributeConverter<org.locationtech.jts.geom.Polygon,
String>
public class PolygonWKTConverter
extends Object
implements jakarta.persistence.AttributeConverter<org.locationtech.jts.geom.Polygon,String>
Transforms
Polygon
datatype into WKT (Well-known Text) representation that persists as a text and vice versa.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(org.locationtech.jts.geom.Polygon polygon) org.locationtech.jts.geom.Polygon
-
Constructor Details
-
PolygonWKTConverter
public PolygonWKTConverter()
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumn
in interfacejakarta.persistence.AttributeConverter<org.locationtech.jts.geom.Polygon,
String>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttribute
in interfacejakarta.persistence.AttributeConverter<org.locationtech.jts.geom.Polygon,
String>
-