Minor change to have Hibernate SessionFactory in tha abstract repository instead of the concrete repository.