Skip to content
Snippets Groups Projects
Commit ed017661 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Adding custom serializing

parent 18ed3eb9
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
package no.nibio.vips.entity; package no.nibio.vips.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.vividsolutions.jts.geom.Geometry; import com.vividsolutions.jts.geom.Geometry;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
...@@ -33,6 +34,7 @@ import java.util.TimeZone; ...@@ -33,6 +34,7 @@ import java.util.TimeZone;
* @copyright 2013-2017 <a href="http://www.nibio.no">NIBIO</a> * @copyright 2013-2017 <a href="http://www.nibio.no">NIBIO</a>
* @author Tor-Einar Skog <tor-einar.skog@nibio.no> * @author Tor-Einar Skog <tor-einar.skog@nibio.no>
*/ */
@JsonSerialize(using=ResultSerializer.class)
public class ResultImpl implements Result{ public class ResultImpl implements Result{
private Date validTimeStart, validTimeEnd; private Date validTimeStart, validTimeEnd;
private Geometry validGeometry; private Geometry validGeometry;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment