Class TimestampJson
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.web.controller.api.json.TimestampJson
-
public class TimestampJson extends java.lang.Object
Serialization class for java Date objects. We use DATETIME types for storing our timestamps in mysql. DATETIME only stores at seconds precision by default. In the REST api when we create an object the timestamps will have milliseconds precision but on subsequent fetchs the timestamps will only have seconds precision. This enforces the timestamp fields to only ever have seconds precision.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimestampJson.TimestampSerializer
Default serializer forDate
objects.
-
Constructor Summary
Constructors Constructor Description TimestampJson()
-