I have an entity Component with componentType as a field. This field is not persistable, its value will be set from outside (by caller).
My question is how should I handle it? If I mark it transient then its value will not be serialized, which I don't think serves the purpose. Its value must be serialized if object is serialized in
J2ee environment and on deserialization that should come back. So what is the solution (what annotation should I use to mark it and its setter/getter)?