-
Hi, There's been some discussion (#17291) about the laziness of @onetomany associations in regards to how they are implemented when Hibernate is used with Quarkus so I wanted to ask whether there are some specifics in this case vs. when Hibernate is used without Quarkus. It might be that @onetomany associations behaved differently in Hibernate 5.3 and before and that this new behavior is entirely Hibernate's fault (using Hibernate 5.6.10 with Quarkus 2.11.2).
...and this is the mapping used on the getter: @Override
@OneToMany(targetEntity = Span.E.class, mappedBy = "towerB", fetch = FetchType.LAZY)
public Set<Span> getSpanB() {
return spanB;
} Philosophically, why should this be different from say |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
That's what I'd expect as well... However, I can't help but wonder: why does it matter in your case, since that collection will throw an exception as soon as you try to do anything with it? |
Beta Was this translation helpful? Give feedback.
-
#27666 should fix this. Thanks to you for reaching out, and thanks to @beikov for setting me on the right path! |
Beta Was this translation helpful? Give feedback.
#27666 should fix this. Thanks to you for reaching out, and thanks to @beikov for setting me on the right path!