Hibernate 4.3.0.Final 發布,Java中最流行的持久層框架

jopen 10年前發布 | 13K 次閱讀 Hibernate

Hibernate是一種Java語言下的對象關系映射解決方案。 它是使用GNU寬通用公共許可證發行的自由、開源的軟件。它為面向對象的領域模型到傳統的關系型數據庫的映射,提供了一個使用方便的框架。Hibernate也是目前Java開發中最為流行的數據庫持久層框架,現已歸JBOSS所有。

它的設計目標是將軟件開發人員從大量相同的數據持久層相關編程工作中解放出來。無論是從設計草案還是從一個遺留數據庫開始,開發人員都可以采用Hibernate。

Hibernate不僅負責從Java類到數據庫表的映射(還包括從Java數據類型到SQL數據類型的映射),還提供了面向對象的數據查詢檢索機制,從而極大地縮短的手動處理SQL和JDBC上的開發時間。

今天Hibernate 團隊宣布 Hibernate ORM 4.3.0 Final 版本發布,該版本通過了 JPA 2.1 規范認證。

JPA 2.1 包含如下新特性:

  • Support for stored procedures. See my previous blog for details
  • CriteriaUpdate and CriteriaDelete allow definition and execution of UPDATE and DELETE queries in type-safe Criteria form.
  • Entity listeners can now take advantage of dependency injection through CDI.
  • AttributeConverters, which define the ability to apply conversions on basic values between their database representation and their representation in your domain model. This is similar in concept to Hibernate's Type contract, although certainly less powerful (can only apply to basic values and operate on in-memory values). On the positive side, JPA AttributeConverters are portable across providers.
  • Entity Graph support
  • Standardized schema generation. With 2.1 JPA now defines schema generation which is standardized across providers in terms of how generation is performed and the settings providers understand as a baseline. Arun Gupta has a good write up of the basic schema generation support.
  • Synchronization of persistence contexts via SynchronizationType
  • @ConstructorResult support in result set mappings for native queries

非 JPA 方面的工作還包括:

  • Continued improvement in Hibernate's support for OSGi environments. OSGi support in 4.3 is still somewhat bound by certain design limitations within Hibernate, We plan to fully address these limitations in 5.0 (see HHH-8501 for details).
  • Continued work on new bytecode enhancement support within Hibernate, adding support for inline dirty checking. See HHH-8354 for details.
  • Initial break down of the monolithic DocBook-based manuals into smaller Asciidoc-based topical guides (HHH-8606). This is an ongoing process.
 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!