These two annotations have been requested before. Idea is if we do:
then during replication/persistency, we will 1) skip obj1, 2) treat obj2 as a Serializable object (so it needs to implement Serializable interface), even it is an "aspectized" Pojo originally.
Note that I will provide JDK5.0 support only.
Couple of additional notes:
1. For @Transient annotation, so there is no contents in the cache store. When a user do a pojo.getObj1(), we will return the value from the in-memory copy. Likewise, for setObject1().
2. For @Serializable annotation, when a user do a:
newObj = pojo.getObj2(); newObj.setName("Me");