For faster navigation, this Iframe is preloading the Wikiwand page for Hibernate.

Hibernate

此条目需要补充更多来源。 (2023年8月9日)请协助补充多方面可靠来源改善这篇条目无法查证的内容可能会因为异议提出而被移除。致用户:请搜索一下条目的标题(来源搜索:"Hibernate"网页新闻书籍学术图像),以检查网络上是否存在该主题的更多可靠来源(判定指引)。
Hibernate
开发者红帽公司
当前版本
  • 6.5.0 (2024年4月25日;稳定版本)[1]
编辑维基数据链接
原始码库 编辑维基数据链接
编程语言Java
操作系统跨平台Java虚拟机
平台Java虚拟机
许可协议GNU宽通用公共许可证
网站http://www.hibernate.org

Hibernate是一种Java语言下的对象关系映射(ORM)解决方案。它是使用GNU宽通用公共许可证发行的自由开源的软件。它为面向对象领域模型到传统的关系型数据库的映射,提供了一个使用方便的持久化框架

概览

它的设计目标是将软件开发人员从大量相同的数据持久层相关编程工作中解放出来。无论是从设计草案还是从一个遗留数据库开始,开发人员都可以采用Hibernate。

Hibernate不仅负责从Java到数据库表的映射(还包括从Java数据类型到SQL数据类型的映射),还提供了面向对象的数据查询检索机制,从而极大地缩短了手动处理SQLJDBC上的开发时间。

发展历程

2001年,澳大利亚墨尔本一位名为Gavin King的27岁的程序员,买了一本SQL编程的书,他厌倦了实体bean,认为自己可以开发出一个符合对象关系映射理论,并且真正好用的Java持久化层框架,因此他需要先学习一下SQL。这一年的11月,Hibernate的第一个版本发布了。

2002年,已经有人开始关注和使用Hibernate了。

2003年9月,Hibernate开发团队进入JBoss公司,开始全职开发Hibernate,从这个时候开始Hibernate得到了突飞猛进的普及和发展。

2004年,整个Java社区开始从实体bean向Hibernate转移,特别是在Rod Johnson的著作《Expert One-on-One J2EE Development without EJB》出版后,由于这本书以扎实的理论、充分的论据和详实的论述否定了EJB,提出了轻量级敏捷开发理念之后,以Hibernate和Spring为代表的轻量级开源框架开始成为Java世界的主流和事实标准。在2004年Sun领导的J2EE5.0标准制定当中的持久化框架标准正式以Hibernate为蓝本。

2006年,J2EE5.0标准正式发布以后,持久化框架标准Java Persistent API(简称JPA)基本上是参考Hibernate实现的,而Hibernate在3.2版本开始,已经完全兼容JPA标准。

程序开发

开发环境

Hibernate是一个以LGPL(Lesser GNU Public License)许可证形式发布的开源项目。在Hibernate官网上有下载Hibernate包的说明。Hibernate包以原始码或者二进制的形式提供。

开发工具

Eclipse:一个开放原始码的、基于Java的可扩展开发平台。

NetBeans:开放原始码的Java集成开发环境,适用于各种客户机和Web应用。

IntelliJ IDEA:在代码自动提示、代码分析等方面,具有很好的功能。

MyEclipse:由Genuitec公司开发的一款商业化软件,是应用比较广泛的Java应用程式集成开发环境。

.NET上的Hibernate

Hibernate有个在.NET Framework上的实现版本,称为NHibernate,在ADO.NET Entity Framework发表之前,NHibernate是在.NET Framework上经常被使用的ORM实现。

参考文献

  1. ^ 6.5 has gone final!. 2024年4月25日 [2024年6月10日]. 

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
Hibernate
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?