如何在NB 7中使用EclipseLink 2.3作为持久性提供程序? [英] How do you use EclipseLink 2.3 as persistence provider in NB 7?

查看:84
本文介绍了如何在NB 7中使用EclipseLink 2.3作为持久性提供程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了最新的EclipseLink 2.3,并想尝试一下。但是我找不到在NB7中选择EclipseLink 2.3作为持久性提供程序的方法。

I downloaded the latest EclipseLink 2.3 and want to give it a try. But I cannot find a way to choose EclipseLink 2.3 as a persistence provider in NB7.

这就是我所做的。
1.转到我项目的persistence.xml。在设计视图-> Persistence Provider下拉菜单-> New Persistence Library
2中。我添加了EclipseLink 2.3 jar文件并为其命名。
3.单击确定。

Here's what I did. 1. Go to my project's persistence.xml. In Design view-> Persistence Provider drop down menu -> New Persistence Library 2. I added the EclipseLink 2.3 jar files and gave it a name. 3. Hit OK.

什么都没发生。它仍然显示 EclipseLink(JPA 2)。(默认)作为我的Persistence Provider。而且我无法在下拉菜单中找到新创建的库。(但是如果我转到Project Properties-> Libaries-> Add Library,我可以看到它

Nothing happened. It still shows "EclipseLink (JPA 2.)(Default) as my Persistence Provider. And I cannot find the newly created library in the drop down menu. (But if I go Project Properties->Libaries->Add Library I can see it got created).

那么我如何使用EclipseLink 2.3作为NB7中的持久性提供程序?

So how do i use EclipseLink 2.3 as a persistence provider in NB7?

推荐答案

只要您的库列表包含您的EclipseLink 2.3 jar,并且persistence.xml文件包含以下行:
org.eclipse.persistence.jpa.PersistenceProvider

As long as your Libraries list contains your EclipseLink 2.3 jar and that the persistence.xml file contains the following line: org.eclipse.persistence.jpa.PersistenceProvider

您将使用2.3版的EclipseLink。关于netbeans中的显示,我不确定为什么它不会更新,但我不会担心。

You will be using version 2.3 of EclipseLink. As for the display in netbeans, I'm not sure why it wouldn't update but I wouldn't worry about it.

仅供参考,我已经通过上述方法在Netbeans中使用EclipseLink 2.3.0,并且效果很好。

FYI, I've been using EclipseLink 2.3.0 in Netbeans via the method I've described above and it works fine.

这篇关于如何在NB 7中使用EclipseLink 2.3作为持久性提供程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆