JPA 2.2’s new getResultStream() method and how you should NOT use it
|

JPA 2.2’s new getResultStream() method and how you should NOT use it

JPA 2.2 introduced several new features, and one of them is the new getResultStream() method. This method is now part of the Query interface. As you might guess from its name, it allows you to retrieve the result of your query as a Stream. The goal of this method is to provide an efficient way to…

Hibernate Tips: How to select a specific subclass from an inheritance hierarchy
|

Hibernate Tips: How to select a specific subclass from an inheritance hierarchy

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please leave a comment below. Question: I have a many-to-many association to the superclass of an inheritance hierarchy. How can I select only a certain…