[hibernate-issues] [JIRA] (HBX-2060) Adapt the DAO template to remove the compilation issues