List of usage examples for org.hibernate.spatial JTSGeometryJavaTypeDescriptor INSTANCE
JavaTypeDescriptor INSTANCE
To view the source code for org.hibernate.spatial JTSGeometryJavaTypeDescriptor INSTANCE.
Click Source Link
From source file:org.openlmis.referencedata.domain.Facility.java
License:Open Source License
private void writeObject(java.io.ObjectOutputStream out) throws IOException { if (null != location) { out.writeObject(JTSGeometryJavaTypeDescriptor.INSTANCE.toString(location)); }//ww w . jav a2 s .c o m }
From source file:org.openlmis.referencedata.domain.Facility.java
License:Open Source License
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { String locationAsString = (String) in.readObject(); if (null != locationAsString) { Geometry geometry = JTSGeometryJavaTypeDescriptor.INSTANCE.fromString(locationAsString); location = JTSGeometryJavaTypeDescriptor.INSTANCE.unwrap(geometry, Point.class, null); }//from w w w . j a v a 2 s.c o m }
From source file:org.openlmis.referencedata.domain.GeographicZone.java
License:Open Source License
private void writeObject(java.io.ObjectOutputStream out) throws IOException { if (null != boundary) { out.writeObject(JTSGeometryJavaTypeDescriptor.INSTANCE.toString(boundary)); }/*from www . jav a2 s. c om*/ }
From source file:org.openlmis.referencedata.domain.GeographicZone.java
License:Open Source License
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { String boundryAsString = (String) in.readObject(); if (null != boundryAsString) { Geometry geometry = JTSGeometryJavaTypeDescriptor.INSTANCE.fromString(boundryAsString); boundary = JTSGeometryJavaTypeDescriptor.INSTANCE.unwrap(geometry, Polygon.class, null); }//from w ww .j a v a 2 s .co m }