I need to return an entity object from a NamedQuery and I am having trouble.
So I want to return a row from the Revision table but where the row is equal to the passed in id (from the
Test table) and has the max revision from the revision table. This NamedQuery almost does the trick but I am returning the max revision number from the revision table and not the actual revision entity.