Lightning
Lightning copied to clipboard
Add annotations for Pre-&Post-Hooks when (de-)serialize an VO
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