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
Alexey Valikov edited this page Aug 31, 2017
·
1 revision
Making classes serializable
Making schema-derived classes serializable
According to the Java Persistence API specification, section 2.1, entities must implement the serializable interface:
If an entity instance is to be passed by value as a detached object (e.g., through a remote interface), the entity class must implement the Serializable interface.
Hyperjaxb2 itself does not enforce serializable classes generation, you should use the jaxb:serializable global bindings customization element to make your model serializable: