DirectStatePersistable - corda

corda / net.corda.core.schemas / DirectStatePersistable

# DirectStatePersistable

`interface DirectStatePersistable : StatePersistable`

Marker interface to denote a persistable Corda state entity that exposes the transaction id and index as composite key called stateRef.

### Properties

#### stateRef | `abstract val stateRef: PersistentStateRef?`

### Inheritors

#### PersistentState | A super class for all mapped states exported to a schema that ensures the StateRef appears on the database row. The StateRef will be set to the correct value by the framework (there's no need to set during mapping generation by the state itself). `class PersistentState : DirectStatePersistable`