-1
In my relationship, a Call is related to many Histories. The key to the Call is present in each History. When consulting a History by code, there is a @Manytoone relation that returns the Call to which the history belongs. When consulting the Call, the answer should contain the consulted Call and all Histories related to this Call. This relation is mapped in the Called model as @Onetomany.
It is possible to instantiate the History Collection class and generate an output in the console, but the history is not sent in JSON to the client.
Note: All JPA classes were automatically generated from Netbeans using "New > Database Entity Class...".