I was reading the hibernate tutorial on tutorialspoint, they say that in order to use annotations with Hibernate it is required to have the following dependencies:
hibernate-annotations.jar
hibernate-comons-annotations.jar
ejb3-persistence.jar
I've fetched those dependencies with Maven, but then when they continue with their example, they import javax.persistence rather than org.hibernate.annotations to use the annotations such as @Entity @Table
etc...
What is the difference between javax.persistence
and org.hibernate.annotations
? and why do I feel like I downloaded hibernate's annotations and I'm not using them?