如何将Hibernate 5安装到Apache Karaf v4 [英] How to install Hibernate 5 into Apache Karaf v4
问题描述
我已经安装了Apache Karaf v4.03并查询了Hibernate的可用功能列表,如下所列。不幸的是,我正在使用Hibernate v5。
hibernate | 3.3.2.GA | |卸载|企业-4.0.3 | Hibernate 3.x JPA持久化引擎支持
hibernate | 4.2.15.Final | |卸载|企业-4.0.3 | Hibernate 4.2.x JPA持久化引擎支持
hibernate-envers | 4.2.15.Final | |卸载|企业-4.0.3 | Hibernate Envers 4.2.x
hibernate | 4.3.6.Final | |卸载|企业-4.0.3 | Hibernate 4.3.x JPA持久化引擎支持
hibernate-envers | 4.3.6.Final | |卸载|企业-4.0.3 | Hibernate Envers 4.3.x
hibernate-validator | 5.0.3.Final | |卸载|企业-4.0.3 | Hibernate验证器支持
我无法找到将Hibernate v5安装到Karaf v4的说明。是否发布了执行此任务的说明,并且可能还有可下载的功能文件?
最新发布的hibernate已经发布了:如果您从hibernate页面下载hibernate-release-5.0.5.Final.zip( http://sourceforge.net/projects/hibernate/files/hibernate-orm /5.0.5.Final/hibernate-release-5.0.5.Final.zip/download )并解压缩文件,您将看到一个 osgi
文件夹。
您可以找到已经准备好的功能:hibernate-osgi-5.0.5.Final-karaf.xml。
您可以将其复制到Karaf的deploy文件夹中,然后执行:
特性:install hibernate-orm
应该没有任何问题的安装。
另外安装hibernate 5.0.5功能的方法是用命令添加一个repo功能:
功能:repo-add命令。
在这里您可以看到hibernate的功能列表和我已安装的功能:
karaf @ root()>功能:列表| grep hibernate
hibernate | 3.3.2.GA | |卸载|企业-4.0.3 | Hibernate 3.x JPA持久化引擎支持
hibernate | 4.2.15.Final | |卸载|企业-4.0.3 | Hibernate 4.2.x JPA持久化引擎支持
hibernate-envers | 4.2.15.Final | |卸载|企业-4.0.3 | Hibernate Envers 4.2.x
hibernate | 4.3.6.Final | |卸载|企业-4.0.3 | Hibernate 4.3.x JPA持久化引擎支持
hibernate-envers | 4.3.6.Final | |卸载|企业-4.0.3 | Hibernate Envers 4.3.x
hibernate-validator | 5.0.3.Final | |卸载|企业-4.0.3 | Hibernate验证器支持
hibernate-orm | 5.0.5.Final | x |开始| hibernate-osgi |将所有Hibernate核心依赖关系和需求
hibernate-envers |相结合5.0.5.Final | |卸载| hibernate-osgi |轻松添加Envers支持到hiber
hibernate-infinispan |的功能5.0.5.Final | |卸载| hibernate-osgi |轻松添加基于Infinispan的cachin功能
hibernate-ehcache | 5.0.5.Final | |卸载| hibernate-osgi |轻松添加基于Ehcache的缓存功能s
karaf @ root()>
I've installed Apache Karaf v4.03 and queried the list of available features for Hibernate, as listed below. Unfortunately, I am using Hibernate v5.
hibernate | 3.3.2.GA | | Uninstalled | enterprise-4.0.3 | Hibernate 3.x JPA persistence engine support
hibernate | 4.2.15.Final | | Uninstalled | enterprise-4.0.3 | Hibernate 4.2.x JPA persistence engine support
hibernate-envers | 4.2.15.Final | | Uninstalled | enterprise-4.0.3 | Hibernate Envers 4.2.x
hibernate | 4.3.6.Final | | Uninstalled | enterprise-4.0.3 | Hibernate 4.3.x JPA persistence engine support
hibernate-envers | 4.3.6.Final | | Uninstalled | enterprise-4.0.3 | Hibernate Envers 4.3.x
hibernate-validator | 5.0.3.Final | | Uninstalled | enterprise-4.0.3 | Hibernate Validator support
I am unable to find instructions for installing Hibernate v5 into Karaf v4. Are there published instructions for performing this task, and perhaps a downloadable features file?
Latest hibernate-release comes Karaf ready already:
If you download the hibernate-release-5.0.5.Final.zip from hibernate's page (http://sourceforge.net/projects/hibernate/files/hibernate-orm/5.0.5.Final/hibernate-release-5.0.5.Final.zip/download) and decompress the file, you will see an osgi
folder.
There you can find an already prepared feauture: hibernate-osgi-5.0.5.Final-karaf.xml.
You can just copy it to Karaf's deploy folder and then execute:
feature:install hibernate-orm
It should be installed without any problem.
Another way to install hibernate 5.0.5 feature is to add a repo to features with the command:
feature:repo-add command.
Here you can see the list of hibernate's features and the one I have installed:
karaf@root()> feature:list | grep hibernate
hibernate | 3.3.2.GA | | Uninstalled | enterprise-4.0.3 | Hibernate 3.x JPA persistence engine support
hibernate | 4.2.15.Final | | Uninstalled | enterprise-4.0.3 | Hibernate 4.2.x JPA persistence engine support
hibernate-envers | 4.2.15.Final | | Uninstalled | enterprise-4.0.3 | Hibernate Envers 4.2.x
hibernate | 4.3.6.Final | | Uninstalled | enterprise-4.0.3 | Hibernate 4.3.x JPA persistence engine support
hibernate-envers | 4.3.6.Final | | Uninstalled | enterprise-4.0.3 | Hibernate Envers 4.3.x
hibernate-validator | 5.0.3.Final | | Uninstalled | enterprise-4.0.3 | Hibernate Validator support
hibernate-orm | 5.0.5.Final | x | Started | hibernate-osgi | Combines all Hibernate core dependencies and requ
hibernate-envers | 5.0.5.Final | | Uninstalled | hibernate-osgi | Feature for easily adding Envers support to hiber
hibernate-infinispan | 5.0.5.Final | | Uninstalled | hibernate-osgi | Feature for easily adding Infinispan-based cachin
hibernate-ehcache | 5.0.5.Final | | Uninstalled | hibernate-osgi | Feature for easily adding Ehcache-based caching s
karaf@root()>
这篇关于如何将Hibernate 5安装到Apache Karaf v4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!