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).

Assignee

James Higgs

Reporter

James Higgs

Labels

None

Feature Team

Kernel Group

Story Points / Dev Days

2

Fix versions

Ported to...

None

Engineering Teams

None

Priority

Medium
Configure