Consistent database columns naming convention. (#2043)

* Consistent database column naming convention.
* Remove a column length constraint in NodeAttachmentService.
This commit is contained in:
szymonsztuka 2017-11-15 13:09:25 +00:00 committed by GitHub
parent 4e263a1981
commit f0a5ea96e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -78,7 +78,7 @@ class PersistentIdentityService(identities: Iterable<PartyAndCertificate> = empt
var publicKeyHash: String = "",
@Lob
@Column
@Column(name = "identity_value")
var identity: ByteArray = ByteArray(0)
)

View File

@ -23,7 +23,7 @@ class DBCheckpointStorage : CheckpointStorage {
var checkpointId: String = "",
@Lob
@Column(name = "checkpoint")
@Column(name = "checkpoint_value")
var checkpoint: ByteArray = ByteArray(0)
)

View File

@ -22,7 +22,7 @@ class DBTransactionStorage : WritableTransactionStorage, SingletonSerializeAsTok
var txId: String = "",
@Lob
@Column
@Column(name = "transaction_value")
var transaction: ByteArray = ByteArray(0)
)

View File

@ -39,7 +39,7 @@ class NodeAttachmentService(metrics: MetricRegistry) : AttachmentStorage, Single
indexes = arrayOf(Index(name = "att_id_idx", columnList = "att_id")))
class DBAttachment(
@Id
@Column(name = "att_id", length = 65535)
@Column(name = "att_id")
var attId: String,
@Column(name = "content")

View File

@ -70,7 +70,7 @@ class RaftUniquenessProvider(private val transportConfiguration: NodeSSLConfigur
@Table(name = "notary_committed_states")
class RaftState(
@Id
@Column
@Column(name = "id")
var key: String = "",
@Lob

View File

@ -87,7 +87,7 @@ object TestSchema : MappedSchema(SchemaFamily::class.java, 1, setOf(Parent::clas
@Table(name = "Children")
class Child {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GeneratedValue
@Column(name = "child_id", unique = true, nullable = false)
var childId: Int? = null