-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Design question - where do I filter a collection?
PostPosted: Tue Nov 23, 2004 11:45 am 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.