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>

MappedSchema(schemaFamily: Class<*>, version: Int, mappedTypes: Iterable<Class<*>>)

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.

Properties

mappedTypes

val mappedTypes: Iterable<Class<*>>

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

migrationResource

open val migrationResource: String?

Optional classpath resource containing the database changes for the mappedTypes

name

val name: String

version

val version: Int

The version number of this instance within the family.

Functions

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.

Inheritors

CashSchemaV1

object CashSchemaV1 : MappedSchema

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.

CommercialPaperSchemaV1

object CommercialPaperSchemaV1 : MappedSchema

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.

CommonSchemaV1

object CommonSchemaV1 : MappedSchema

First version of the Vault ORM schema

SampleCashSchemaV1

object SampleCashSchemaV1 : MappedSchema

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.

SampleCashSchemaV2

object SampleCashSchemaV2 : MappedSchema

Second version of a cash contract ORM schema that extends the CommonSchemaV1.FungibleState abstract schema.

SampleCashSchemaV3

object SampleCashSchemaV3 : MappedSchema

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.