# Interface DataObject

All Superinterfaces:
  `Persistent, Serializable`

@Deprecated(since="5.0", forRemoval=true) public interface DataObject extends Persistent
Deprecated, for removal: This API element is subject to removal in a future version.
use `Persistent` interface directly
Defines basic methods for a persistent object in Cayenne.

- ## Field Summary

  ### Fields inherited from interface Persistent

  `DEFAULT_VERSION`

- ## Method Summary

  ### Methods inherited from interface Persistent

  `addToManyTarget, getObjectContext, getObjectId, getPersistenceState, getSnapshotVersion, readNestedProperty, readNestedProperty, readProperty, readPropertyDirectly, removeToManyTarget, setObjectContext, setObjectId, setPersistenceState, setSnapshotVersion, setToOneTarget, writeProperty, writePropertyDirectly`