Class GenericPersistentObject

java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.GenericPersistentObject
All Implemented Interfaces:
Serializable, Persistent, Validating

public class GenericPersistentObject extends PersistentObject
Implementation of Persistent that uses Map to store object fields.

This implementation was pre 4.1 default.

Since 4.1 it is recommended to use PersistentObject as superclass (and it is actually default now), as it has better performance and lower memory consumption (much lower for small objects).

You may need to use this class only if you have some generic attributes created at runtime (also consider HybridPersistentObject in this case) or if any compatibility issues arise.

Since:
5.0, renamed from CayenneDataObject
See Also: