Class OracleJsonDurationSerde

java.lang.Object
io.micronaut.serde.oracle.jdbc.json.serde.OracleJsonDurationSerde
All Implemented Interfaces:
Deserializer<Duration>, Serde<Duration>, Serializer<Duration>

@Singleton @Order(-100) public class OracleJsonDurationSerde extends Object implements Serde<Duration>
The custom serde for Duration for Oracle JSON. Needed because default serde in Micronaut expects number (nanos) to deserialize from, but we are getting it as String from Oracle JSON parser.
Since:
2.0.0
Author:
radovanradic
  • Constructor Details

    • OracleJsonDurationSerde

      public OracleJsonDurationSerde()
  • Method Details