mirror of
https://github.com/corda/corda.git
synced 2025-02-09 12:21:22 +00:00
parent
f4781cd4a5
commit
3b9964a4f8
@ -22,8 +22,8 @@ object CashSchema
|
|||||||
object SampleCashSchemaV1 : MappedSchema(schemaFamily = CashSchema.javaClass, version = 1, mappedTypes = listOf(PersistentCashState::class.java)) {
|
object SampleCashSchemaV1 : MappedSchema(schemaFamily = CashSchema.javaClass, version = 1, mappedTypes = listOf(PersistentCashState::class.java)) {
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "contract_cash_states_v1",
|
@Table(name = "contract_cash_states_v1",
|
||||||
indexes = arrayOf(Index(name = "ccy_code_idx", columnList = "ccy_code"),
|
indexes = arrayOf(Index(name = "ccy_code_idx1", columnList = "ccy_code"),
|
||||||
Index(name = "pennies_idx", columnList = "pennies")))
|
Index(name = "pennies_idx1", columnList = "pennies")))
|
||||||
class PersistentCashState(
|
class PersistentCashState(
|
||||||
@Column(name = "owner_key_hash", length = MAX_HASH_HEX_SIZE, nullable = false)
|
@Column(name = "owner_key_hash", length = MAX_HASH_HEX_SIZE, nullable = false)
|
||||||
var ownerHash: String,
|
var ownerHash: String,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user