Chapter 4 Generating Hibernate Persistent Objects and JSF Pages


DAO

The DAO is an abstraction layer. It hides the Hibernate specific features from the application. An application developed using DAO can switch to another persistence management engine (EJB 3.0, JDO 2.0, ...) without changing a single line of code. The only thing you need to change is the factory properties file.

The DAO provides helpers functions to simplify CRUD (Create, Read, Update, Delete) operations, session management, auto-commit, etc.


The following objects are involved:

 


Copyright (C) 2005. Sybase Inc. All rights reserved.