0
I’m having a problem with JPA when I make an appointment.
I’d like to consult Entity A that has a List
of Entity B and List
of Entity C (I want to consult Entity A bringing the relationships with Entities B and C into one query
).
When I try to execute this query the exception of Multiple bags is launched.
Is there any way to do this consultation without having to use @IndexColumn
, Fetch.EAGER
or change List
for Set
? (Solutions I found on the internet)
NOTE: I did not put the code here because I just want to know if there is an alternative other than the ones I mentioned earlier.
I already did, and thanks to whoever voted negative ;)
– Rubens