Uploaded image for project: 'Hibernate ORM'
  1. HHH-11012

Hibernate Spatial Geometry Not Serializable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.2.4, 5.1.3, 5.0.12
    • Component/s: hibernate-spatial
    • Labels:
      None
    • Environment:
      PostGIS
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      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:

      
      import com.vividsolutions.jts.geom.MultiPolygon;
      
      @Entity
      public class Area implements Serializable {
      
      	@Id
      	private final String id;
      
      	private final MultiPolygon boundary;
      
      	......
      }
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: