• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in which jar file javax.persistence.Entity class is present

 
kiran kumar reddy
Ranch Hand
Posts: 94
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys,
i am using eclipse to run hibernate applications. i collected all the jar files required to run a simple hibernate application. i made it and i was successful in running my first hibernate app. many said that javax.persistence.Entity is present in javaee.jar. but there is no such jar file with me. but my app ran very successfully. how can i find javax.persistence.Entity class?
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's part of the JPA api so maybe you have hibernate-jpa-api.jar?
 
kiran kumar reddy
Ranch Hand
Posts: 94
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
E Armitage wrote:It's part of the JPA api so maybe you have hibernate-jpa-api.jar?


no, here are my jar files in the below image
currentJarFiles.png
[Thumbnail for currentJarFiles.png]
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you are on eclipse just do

CTR + SHIFT + T

and search for that class. Eclipse will tell you which jar file it's in.
 
kiran kumar reddy
Ranch Hand
Posts: 94
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
E Armitage wrote:Since you are on eclipse just do

CTR + SHIFT + T

and search for that class. Eclipse will tell you which jar file it's in.

thank you i found it in ejb3-persistence.jar file
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic