mirror of
https://github.com/corda/corda.git
synced 2025-06-22 17:09:00 +00:00
[CORDA-1468] Properly handle entites where NULLs can be inserted into DB (#3324)
* Allow proper null values on entities which fields can get NULL values.
This commit is contained in:
committed by
GitHub
parent
1aa1189b36
commit
c009cbd91a
@ -41,8 +41,8 @@ object DummyLinearStateSchemaV1 : MappedSchema(schemaFamily = DummyLinearStateSc
|
||||
/**
|
||||
* Dummy attributes
|
||||
*/
|
||||
@Column(name = "linear_string", nullable = false)
|
||||
var linearString: String,
|
||||
@Column(name = "linear_string", nullable = true)
|
||||
var linearString: String?,
|
||||
|
||||
@Column(name = "linear_number", nullable = false)
|
||||
var linearNumber: Long,
|
||||
|
@ -21,7 +21,7 @@ object DummyLinearStateSchemaV2 : MappedSchema(schemaFamily = DummyLinearStateSc
|
||||
@CollectionTable(name = "dummy_linear_states_v2_parts", joinColumns = [(JoinColumn(name = "output_index", referencedColumnName = "output_index")), (JoinColumn(name = "transaction_id", referencedColumnName = "transaction_id"))])
|
||||
override var participants: MutableSet<AbstractParty>? = null,
|
||||
|
||||
@Column(name = "linear_string", nullable = false) var linearString: String,
|
||||
@Column(name = "linear_string", nullable = true) var linearString: String?,
|
||||
|
||||
@Column(name = "linear_number", nullable = false) var linearNumber: Long,
|
||||
|
||||
|
Reference in New Issue
Block a user