在基于hibernate的应用程序中,我应该包含哪些jar以使用javax.persistence包? [英] What jar should I include to use javax.persistence package in a hibernate based application?

查看:146
本文介绍了在基于hibernate的应用程序中,我应该包含哪些jar以使用javax.persistence包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以从Glassfish项目(glassfish-persistence-api)中获取它,或者可能有一个Hibernate jar?

解决方案

如果您正在开发OSGi系统,我建议您从 Springsource Enterprise下载捆绑版本捆绑存储库



否则,可以使用包含 javax.persistence 包的常规jar文件


Is it ok to take it from Glassfish project ( glassfish-persistence-api) or may be there is a Hibernate jar?

解决方案

If you are developing an OSGi system I would recommend you to download the "bundlefied" version from Springsource Enterprise Bundle Repository.

Otherwise its ok to use a regular jar-file containing the javax.persistence package

这篇关于在基于hibernate的应用程序中,我应该包含哪些jar以使用javax.persistence包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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