eclipse默认jpa实现库在哪里下载?

时间:2021-08-16 11:38:57

In eclipse, the "default implementation library" what jars files do I need to include if I do not want to use server runtime?

在eclipse中,“默认实现库”,如果我不想使用服务器运行时,我需要包含哪些jars文件?

I'm refering to this tutorial http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jpt.doc.user/task_create_new_project.htm

我正在参考本教程http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jpt.doc.user/task_create_new_project.htm

2 个解决方案

#1


Follow Using TopLink JPA with Dali to get started with the Toplink Essentials (JPA reference implementation). To get the mentioned jars (toplink-essentials.jar and toplink-essentials-agent.jar), download them from there or, if you use Maven, from the Java.Net Maven Repository.

关注使用TopLink JPA和Dali开始使用Toplink Essentials(JPA参考实现)。要获取上面提到的jar(toplink-essentials.jar和toplink-essentials-agent.jar),请从那里下载它们,或者如果你使用Maven,则从Java.Net Maven Repository下载它们。

PS: Please note that after 2.0-b36, the toplink-essentials-agent.jar file is no longer needed as the agent facility is now integrated into toplink-essentials.jar. So you can do like below.

PS:请注意,在2.0-b36之后,不再需要toplink-essentials-agent.jar文件,因为代理设施现已集成到toplink-essentials.jar中。所以你可以在下面这样做。

$ java -javaagent:toplink-essentials.jar client.Client

#2


Depends on what implementation you want to use. There are currently three most popular implementations: Hibernate, TopLink and EclipseLink.

取决于您要使用的实现。目前有三种最流行的实现:Hibernate,TopLink和EclipseLink。

I know about hibernate that it's README file explains what jars are mandatory for what functions. If you use JPA you must have some sort of EntityManager (hibernate can be used without EntityManager too), so you need all the dependencies of it.

我知道hibernate它的README文件解释了哪些jar对于哪些函数是强制性的。如果您使用JPA,您必须拥有某种EntityManager(hibernate也可以在没有EntityManager的情况下使用),因此您需要它的所有依赖项。

To download hibernate JPA implementation use this link (look for hibernate-entitymanager). You need hibernate core, annotations and entity manager for JPA. If you use all the jars in those three packages you should be ok. But I strongly suggest you to read the README files.

要下载hibernate JPA实现,请使用此链接(查找hibernate-entitymanager)。您需要用于JPA的hibernate核心,注释和实体管理器。如果您使用这三个包装中的所有罐子,您应该没问题。但我强烈建议您阅读README文件。

#1


Follow Using TopLink JPA with Dali to get started with the Toplink Essentials (JPA reference implementation). To get the mentioned jars (toplink-essentials.jar and toplink-essentials-agent.jar), download them from there or, if you use Maven, from the Java.Net Maven Repository.

关注使用TopLink JPA和Dali开始使用Toplink Essentials(JPA参考实现)。要获取上面提到的jar(toplink-essentials.jar和toplink-essentials-agent.jar),请从那里下载它们,或者如果你使用Maven,则从Java.Net Maven Repository下载它们。

PS: Please note that after 2.0-b36, the toplink-essentials-agent.jar file is no longer needed as the agent facility is now integrated into toplink-essentials.jar. So you can do like below.

PS:请注意,在2.0-b36之后,不再需要toplink-essentials-agent.jar文件,因为代理设施现已集成到toplink-essentials.jar中。所以你可以在下面这样做。

$ java -javaagent:toplink-essentials.jar client.Client

#2


Depends on what implementation you want to use. There are currently three most popular implementations: Hibernate, TopLink and EclipseLink.

取决于您要使用的实现。目前有三种最流行的实现:Hibernate,TopLink和EclipseLink。

I know about hibernate that it's README file explains what jars are mandatory for what functions. If you use JPA you must have some sort of EntityManager (hibernate can be used without EntityManager too), so you need all the dependencies of it.

我知道hibernate它的README文件解释了哪些jar对于哪些函数是强制性的。如果您使用JPA,您必须拥有某种EntityManager(hibernate也可以在没有EntityManager的情况下使用),因此您需要它的所有依赖项。

To download hibernate JPA implementation use this link (look for hibernate-entitymanager). You need hibernate core, annotations and entity manager for JPA. If you use all the jars in those three packages you should be ok. But I strongly suggest you to read the README files.

要下载hibernate JPA实现,请使用此链接(查找hibernate-entitymanager)。您需要用于JPA的hibernate核心,注释和实体管理器。如果您使用这三个包装中的所有罐子,您应该没问题。但我强烈建议您阅读README文件。