We're updating the issue view to help you get more done. 

Hibernate Spatial Geometry Not Serializable

Description

Entity with JTS geometry attribute (e.g. com.vividsolutions.jts.geom.Point) is not serializable.

It throws -
java.io.NotSerializableException: org.geolatte.geom.jts.PointSequenceCoordinateSequenceFactory

Entity example:

1 2 3 4 5 6 7 8 9 10 11 12 import com.vividsolutions.jts.geom.MultiPolygon; @Entity public class Area implements Serializable { @Id private final String id; private final MultiPolygon boundary; ...... }

Environment

PostGIS

Status

Assignee

Karel Maesen

Reporter

Marek Cuchy

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.1

Priority

Major