Hibernate Tips: How to downcast entities in JPQL queries
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 you like me to answer, please leave a comment below. Question: My entity model contains an inheritance structure, and I need to limit my query to a specific subclass. How…