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:

Activity

Show:
David Rapacchiale
April 22, 2020, 7:52 AM

is this still a bug?

Ivan Terziev
September 13, 2020, 4:16 PM

This is a very old bug, please fix as soon as you can and propagate as needed.

Assignee

edward.prosser

Reporter

Thor Gilman

Sprint

None

Epic Link

None

Priority

Highest

Due Date

None

Engineering Teams

Docs Team

Affects versions

None

Ported to...

None

Story Points / Dev Days

1
Configure