You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: avro/README.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -114,14 +114,18 @@ and that's about it, for now.
114
114
## Java Time Support
115
115
Serialization and deserialization support for limited set of `java.time` classes to Avro with [logical type](http://avro.apache.org/docs/current/spec.html#Logical+Types) is provided by `AvroJavaTimeModule`.
116
116
117
+
This module is to be used either:
118
+
- Instead of Java 8 date/time module (`com.fasterxml.jackson.datatype.jsr310.JavaTimeModule`) or
119
+
- to override Java 8 date/time module and for that, module must be registered AFTER Java 8 date/time module (last registration wins).
120
+
117
121
```java
118
122
AvroMapper mapper =AvroMapper.builder()
119
123
.addModule(newAvroJavaTimeModule())
120
124
.build();
121
125
```
122
126
123
127
#### Note
124
-
Please note that time zone information is at serialization. Serialized values represent point in time,
128
+
Please note that time zone information is lost at serialization. Serialized values represent point in time,
125
129
independent of a particular time zone or calendar. Upon reading a value back time instant is reconstructed but not the original time zone.
0 commit comments