When serializing or deserializing an valueobject it should be possible to add pre- and posthooks in form of annotated methods to handle additional behavior.
Annotations could be in form of @PrePersist annotions of JPA.
@PreSerialize
@PostSerialize
@PreDeserialize
@PostDeserialize