JPA 2.0 与 Glassfish 2.1

发布于 2024-10-06 09:29:42 字数 104 浏览 1 评论 0原文

只是想知道是否可以将 JPA 2.0 与 Glassfish 2.1 一起使用? 以前有人尝试过吗?

我将使用 JPA 2.0 的最新 hibernate 实现作为提供程序。谢谢

Just wanted to find out if its possible to use JPA 2.0 with Glassfish 2.1?
Has someone tried it before?

I will be using the latest hibernate implementation of JPA 2.0 as the provider. Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥抱我好吗 2024-10-13 09:29:42

我没有在 glassfish 2.1 中使用 JPA 2.0,但我在 Glassfish 3 中使用了 JPA 1.0 (toplink)

我所需要做的就是将 toplink 库包含到项目中并在 persistence.xml 中使用它

您可以尝试包含 JPA2将 .0 库添加到您的项目中,设置 persistence.xml 提供程序(例如 org.eclipse.persistence.jpa.PersistenceProvider)并将其部署到 glassfish 2.1。它应该有效。

I haven't used JPA 2.0 in glassfish 2.1 but I have used JPA 1.0 (toplink) with Glassfish 3

All I needed to do is include the toplink library to the project and use it in the persistence.xml

You can try to include the JPA2.0 library into your project, set your persistence.xml provider (for example <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>) and deploy it to glassfish 2.1. It should work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文