Member Menu
 
 Monthly JBoss newsletter:
 
Java Persistence with Hibernate
CaveatEmptor
«   Hibernate Core

Hibernate Feature List

Flexible Mapping   »

Transparent Persistence

Nonintrusive

  • no required interfaces or base classes for persistent classes
  • no strange collection classes exposed to application code
  • support for Java arrays and the Java collections framework

Persistent JavaBeans style properties

Instance variables are usually considered internal implementation details (property accessors need not be public)

However, if you prefer, you may persist instance variables directly

No build-time source or byte code generation / processing

for a seamless build-test cycle!

(Hibernate uses runtime bytecode generation.)

Support for extensive subset of Java collections API

Map, Set, List, SortedMap, SortedSet, arrays including primitive arrays, Collection

Extensible type system

powerful, innovative model of persistence types

  • supports user-defined types
  • includes built-in support for a rich subset of JDK types including Currency, Locale, BigDecimal, Calendar, etc.
  • elegant, performant support for Clob / Blob
  • support for user-defined collections

Constraint transparency

The application never needs to worry about foreign key constraint violations, even when there are circular references

Automatic Dirty Checking

Modifications to objects associated with a transaction are automatically detected and propagated to the database

Detached object support

Serialized persistent objects may be selectively reassociated with Hibernate, and their state synchronized with the database. You do not need Data Transfer Objects in a multi-tiered architecture!

© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]