I would expect that one could gather enough info...
Sure, but the type-inference in HQL is much more advanced in those versions as it has been around since even before JPA