ejb3 persistence and javax persistence jar files in classpath?

I am using spring3 and Hibernate4 JPA application. I have below two jars in my classpath.

ejb3-persistence-1.0.2.GA.jar
 Javax.persistence jar version 1.0.2

Do i need both the jars? why these jars are required?

Thanks!

Answers


You can use either one of this jar. These jars contains JPA API classes only. No specific implementation logic. If you use maven(gradle, ivy), no need to include this jar since you have added hibernate dependency. Maven will automatically include dependent jars of your project dependent jars.


Need Your Help

CSS + FONT + Image replacement

html css fonts

I stumbled on a site yesterday and forgot to bookmark the url. I'm stumped though because google is not helping me trace my steps. The site was basically a text to image converter for preserving ...

wrap a div around text

javascript jquery

I want to wrap a <input type="text"> just around text hello world. Span should not be surrounded by it.