PersistentState - corda

corda / net.corda.core.schemas / PersistentState

# PersistentState

`@MappedSuperclass class PersistentState : DirectStatePersistable`

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).

### Constructors

#### <init> | 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). `PersistentState(stateRef: PersistentStateRef? = null)`

### Properties

#### stateRef | `var stateRef: PersistentStateRef?`