JPA 2.0 与 Glassfish 2.1
只是想知道是否可以将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有在 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.