corrected bug with Hibernate, project working again

1110998 Marcel Schmitz
1111224 Luís Ferreira