fix composite identifier problems, caused by a change in Hibernate 4.3