Interesting you don't complain about the same happening from loading by id. As I said above, I think this is the correct behavior. Imo you are looking at it from your specific perspective, which is fine, but here you are asking Hibernate to load something as a particular type which (when it is cached) Hibernate knows it is not. That is the definition of an exception to me. On Sun, Dec 17, 2017, 5:55 AM Samuel Andersson (JIRA) < |