I added JPA cfg. I added annotation for beans for hibernate.