adding @Autowired to the template
adding bean configuration for hibernate
improving hibernate-repository template