xnts wrote:
And you are passing to 'normal' DAO methods Hibernate objects as a parameters (for connection, etc), or plan Connection ?
thanks,
Leszek
One of the main functions of the DAO pattern is to encapsulate the data store access, so you probably wouldn't want to require callers to supply things like JDBC connections or Hibernate Sessions. These data store resources should be supplied by a dependency injection framework like Picocontainer, Spring, or a home grown dependency injector of some sort.