Documentation API: Persistence "Persisting Hierarchical Data" Error

Description

There is a documentation error on this page: https://docs.corda.net/api-persistence.html#persisting-hierarchical-data.

The above code results in the table join failing and the child table will contain two versions of both "output_index" and "transaction_id" one of which will always have empty data. A better solution would be the following:

It may be worth noting that the name field in @JoinColumn needs to start with the name of the linking attribute in the child.
Ex:

 

Assignee

edward.prosser

Reporter

Thor Gilman

Labels

Fix versions

None

Ported to...

None

Engineering Teams

None

Priority

Medium
Configure