mirror of
https://github.com/corda/corda.git
synced 2025-01-31 08:25:50 +00:00
Consistent database columns naming convention. (#2043)
* Consistent database column naming convention. * Remove a column length constraint in NodeAttachmentService.
This commit is contained in:
parent
4e263a1981
commit
f0a5ea96e7
@ -78,7 +78,7 @@ class PersistentIdentityService(identities: Iterable<PartyAndCertificate> = empt
|
|||||||
var publicKeyHash: String = "",
|
var publicKeyHash: String = "",
|
||||||
|
|
||||||
@Lob
|
@Lob
|
||||||
@Column
|
@Column(name = "identity_value")
|
||||||
var identity: ByteArray = ByteArray(0)
|
var identity: ByteArray = ByteArray(0)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class DBCheckpointStorage : CheckpointStorage {
|
|||||||
var checkpointId: String = "",
|
var checkpointId: String = "",
|
||||||
|
|
||||||
@Lob
|
@Lob
|
||||||
@Column(name = "checkpoint")
|
@Column(name = "checkpoint_value")
|
||||||
var checkpoint: ByteArray = ByteArray(0)
|
var checkpoint: ByteArray = ByteArray(0)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ class DBTransactionStorage : WritableTransactionStorage, SingletonSerializeAsTok
|
|||||||
var txId: String = "",
|
var txId: String = "",
|
||||||
|
|
||||||
@Lob
|
@Lob
|
||||||
@Column
|
@Column(name = "transaction_value")
|
||||||
var transaction: ByteArray = ByteArray(0)
|
var transaction: ByteArray = ByteArray(0)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ class NodeAttachmentService(metrics: MetricRegistry) : AttachmentStorage, Single
|
|||||||
indexes = arrayOf(Index(name = "att_id_idx", columnList = "att_id")))
|
indexes = arrayOf(Index(name = "att_id_idx", columnList = "att_id")))
|
||||||
class DBAttachment(
|
class DBAttachment(
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "att_id", length = 65535)
|
@Column(name = "att_id")
|
||||||
var attId: String,
|
var attId: String,
|
||||||
|
|
||||||
@Column(name = "content")
|
@Column(name = "content")
|
||||||
|
@ -70,7 +70,7 @@ class RaftUniquenessProvider(private val transportConfiguration: NodeSSLConfigur
|
|||||||
@Table(name = "notary_committed_states")
|
@Table(name = "notary_committed_states")
|
||||||
class RaftState(
|
class RaftState(
|
||||||
@Id
|
@Id
|
||||||
@Column
|
@Column(name = "id")
|
||||||
var key: String = "",
|
var key: String = "",
|
||||||
|
|
||||||
@Lob
|
@Lob
|
||||||
|
@ -87,7 +87,7 @@ object TestSchema : MappedSchema(SchemaFamily::class.java, 1, setOf(Parent::clas
|
|||||||
@Table(name = "Children")
|
@Table(name = "Children")
|
||||||
class Child {
|
class Child {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue
|
||||||
@Column(name = "child_id", unique = true, nullable = false)
|
@Column(name = "child_id", unique = true, nullable = false)
|
||||||
var childId: Int? = null
|
var childId: Int? = null
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user