Used JPA with annotations. Removed unused configurations for spring data.