Joined: Wed Aug 11, 2004 3:48 am Posts: 4 Location: UK
|
Hi,
I'm fairly new to Hibernate and pattern oriented development. I need to filter a collection but am not sure which class should contain the filter.
I have a persistent class Account with a one-to-many collection of persistent Transactions. An AccountDAO interface with a HibernateAccountDAO implementation. I'm using Spring to set the Hibernate session within the DAOs.
I'd like to create a method along the lines accountInstance.getTransactions(date)
The question is where should I put the filter/query? Should Account be made aware of Hibernate or is this the wrong way to approach it?
Thanks,
Andrew
|
|