Apache library and Hibernate objects