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: README.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -227,6 +227,51 @@ But with the index, the `ObjectUuidTypesContributor` reads it, and registers the
227
227
With the classes indexed, the system will know that the `User.Id` should be handled by `ObjectUuidType` and the `@Type(...)` can be dropped.
228
228
This also simplifies usage on every other place, where Hibernate might need to resolve a type for the `Id` instance, like queries.
229
229
230
+
## Usage: (de)serialization with Jackson
231
+
232
+
This library provides `ObjectBigIntIdJacksonModule` and `ObjectUuidJacksonModule`, which can be registered automatically via the standard `java.util.ServiceLoader` mechanism, or explicitly.
233
+
234
+
## Usage: (de)serialization with Kotlin Serialization
235
+
236
+
This library supports two mechanism for the standard Kotlin Serialization.
237
+
238
+
### Kotlin Serialization: Explicit
239
+
240
+
This mechanism requires explicit setup for each ID class
241
+
242
+
```kotlin
243
+
@Serializable(with = Id.Serializer::class)
244
+
class UserId private constructor(id: UUID) : ObjectUuid<UserId>(id) {
0 commit comments