Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Where is the javax.persistence in EclipseLink?
Where is the javax.persistence in EclipseLink? [message #860360] Fri, 27 April 2012 22:51 Go to next message
Eclipse UserFriend
Hey guys,

installing eclipselink through the indigo repo or through the update link from EclipseLink, I have not been able to use the persistence annodation in my java source code.

either i had to import the javax.persistence2*.jar from the eclipse plugin folder or to import the javax.persistence2*.jar from another source.

so iam wondering. why can eclipse not use the javax.persistence2.*jar automatecly? what is the advantage to installing eclipselink if i have to import extern libraries from eclipselink project.
Re: Where is the javax.persistence in EclipseLink? [message #860677 is a reply to message #860360] Sat, 28 April 2012 02:32 Go to previous message
Eclipse UserFriend
The javax.persistence is the result of an expert group defining and describing how persistence should work (JSR 220 and 317). This is technically implemented as the javax.persistence interfaces and annotations, Eclipselink is an implementation of these interfaces. So that is the reason why these are not part of Eclipselink, but a separate entity.

http://en.wikipedia.org/wiki/Java_Persistence_API

If you use Maven then the Eclipselink artifact will reference the persistence artifact it uses, but if you set it up manually, you will need to add it manually.

Tom


On 2012-04-28 04:51, Rudolf Schmidt wrote:
> Hey guys,
>
> installing eclipselink through the indigo repo or through the update link from EclipseLink, I have not been able to use the persistence annodation in my java source code.
> either i had to import the javax.persistence2*.jar from the eclipse plugin folder or to import the javax.persistence2*.jar from another source.
> so iam wondering. why can eclipse not use the javax.persistence2.*jar automatecly? what is the advantage to installing eclipselink if i have to import extern libraries from eclipselink project.
Previous Topic:Madness with compound primary key
Next Topic:SequenceGenerator Error
Goto Forum:
  


Current Time: Wed Jul 23 02:15:37 EDT 2025

Powered by FUDForum. Page generated in 0.06996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top