On Wed, Oct 21, 2009 at 8:22 AM, Roman Ilin <[email protected]> wrote: > Two questions: > 1) why do you use thread local and don't store organization in session
If you store it in your session, you have to mix your data access layer with your web layer. With thread-local variables, you don't (you just have to make sure you set/clear them properly). > 2) to pass organization to your createCriteria() you have to have > organization as parameter in every DAO method where it is appropriate, > right? Not with the thread-locals, no. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
