MappedSchema - corda

corda / net.corda.core.schemas / MappedSchema

# MappedSchema

`open class MappedSchema`

A database schema that might be configured for this node. As well as a name and version for identifying the schema, also list the classes that may be used in the generated object graph in order to configure the ORM tool.

### Parameters

`schemaFamily` - A class to fully qualify the name of a schema family (i.e. excludes version)

`version` - The version number of this instance within the family.

`mappedTypes` - The JPA entity classes that the ORM layer needs to be configure with for this schema.

### Constructors

#### <init> | A database schema that might be configured for this node. As well as a name and version for identifying the schema, also list the classes that may be used in the generated object graph in order to configure the ORM tool. `MappedSchema(schemaFamily: Class<*>, version: Int, mappedTypes: Iterable<Class<*>>)`

### Properties

#### mappedTypes | The JPA entity classes that the ORM layer needs to be configure with for this schema. `val mappedTypes: Iterable<Class<*>>`
#### migrationResource | Optional classpath resource containing the database changes for the mappedTypes `open val migrationResource: String?`
#### name | `val name: String`
#### version | The version number of this instance within the family. `val version: Int`

### Functions

#### equals | `open fun equals(other: Any?): Boolean`
#### hashCode | `open fun hashCode(): Int`
#### toString | `open fun toString(): String`

### Inheritors

#### CashSchemaV1 | First version of a cash contract ORM schema that maps all fields of the Cash contract state as it stood at the time of writing. `object CashSchemaV1 : MappedSchema`
#### CommercialPaperSchemaV1 | First version of a commercial paper contract ORM schema that maps all fields of the CommercialPaper contract state as it stood at the time of writing. `object CommercialPaperSchemaV1 : MappedSchema`
#### CommonSchemaV1 | First version of the Vault ORM schema `object CommonSchemaV1 : MappedSchema`
#### SampleCashSchemaV1 | First version of a cash contract ORM schema that maps all fields of the Cash contract state as it stood at the time of writing. `object SampleCashSchemaV1 : MappedSchema`
#### SampleCashSchemaV2 | Second version of a cash contract ORM schema that extends the CommonSchemaV1.FungibleState abstract schema. `object SampleCashSchemaV2 : MappedSchema`
#### SampleCashSchemaV3 | First version of a cash contract ORM schema that maps all fields of the Cash contract state as it stood at the time of writing. `object SampleCashSchemaV3 : MappedSchema`