1

I want to set up hibernate using Maven. In the pom.xml, I have an option to add a dependency.

When I go there and I want to add a dependency to hibernate, I type "hibernate" in the search bar.

I get a big list of results and I don't know which I should choose.

How do I figure out what do I need for a simple application which uses hibernate?

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
Mark Deno
  • 143
  • 1
  • 1
  • 10
  • Possible duplicate of [What are the Maven dependencies to use hibernate, hibernate annotations, and ehcache?](http://stackoverflow.com/questions/4092558/what-are-the-maven-dependencies-to-use-hibernate-hibernate-annotations-and-ehc) – Tobias Liefke Dec 07 '15 at 14:15

2 Answers2

1

If you are starting a new project then most likely you want to use annotation-based configuration, then you need next libraries:

And optionally some of these:

user3707125
  • 3,394
  • 14
  • 23
  • hibernate-annotations are not necessary anymore, see the answer [here](http://stackoverflow.com/questions/4092558/what-are-the-maven-dependencies-to-use-hibernate-hibernate-annotations-and-ehc) – Tobias Liefke Dec 07 '15 at 14:16
0

I don't have any specific advice regarding Hibernate dependencies, but I would suggest you look for a tutorial regarding Hibernate and whatever specific use case or problem you are trying to solve. Then, determine which dependencies you need

Mike
  • 522
  • 2
  • 14