public class LineStringWKTConverter
extends java.lang.Object
implements javax.persistence.AttributeConverter<org.locationtech.jts.geom.LineString,java.lang.String>
LineString datatype into WKT (Well-known Text) representation that persists as a text and vice versa.| Constructor and Description |
|---|
LineStringWKTConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToDatabaseColumn(org.locationtech.jts.geom.LineString lineString) |
org.locationtech.jts.geom.LineString |
convertToEntityAttribute(java.lang.String s) |
public java.lang.String convertToDatabaseColumn(org.locationtech.jts.geom.LineString lineString)
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<org.locationtech.jts.geom.LineString,java.lang.String>public org.locationtech.jts.geom.LineString convertToEntityAttribute(java.lang.String s)
convertToEntityAttribute in interface javax.persistence.AttributeConverter<org.locationtech.jts.geom.LineString,java.lang.String>