Update JPA entities to use attribute converters for common types

Description

The Corda codebase uses strings in JPA entities to represent commonly persisted types (often forms of hash):

  • SecureHash

  • PublicKey hashes

This could be improved using attribute converters to convert to and from commonly persisted types, making the JPA entities type safe. This removes a common source of confusion relating to how to convert particular types to suitable representations for storage in the database (see for an instance of this happening).

CVSS Vector

None

Status

Assignee

James Higgs

Reporter

James Higgs

Labels

None

CVSS Score

None

Feature Team

Corda Core

Target Version/s

None

Ported to...

None

Story Points

2

Fix versions

Priority

Medium