We are currently starting to use Spring MVC for a new project, and we were wondering what is the best technology to use to connect to our databases? Spring Data JPA or Hibernate?
PS: This is our first project with any of these technologies.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Spring Data JPA OR Hibernate? JPA is an interface if you want, Hibernate is the implementation. You specify the Hibernate to be your JPA provider.
But when you get a hold of that I would encourage you to use Spring Data JPA. First it’s pretty darn easy, less code, etc. I’ve used it my last two projects and I loved it. You can add the Query DSL for type safe queries and your life is going to be even funner.
This is actually a very good place to start:
Spring Data JPA Tutorial