[hibernate-issues] [JIRA] (HHH-15497) Count query when counting polymorphic subclasses by type fails when run twice