Fixed Hibernate Entity Detection Problems