Hi Matt and All,

I just wonder, how do you handle accessing two dao's from managers. Let me
try to explain what I mean on an example.

Two beans, two DAOs, two Managers I have named "GAME" and "MOVE". The
relationship between them is "GAME has zero or more MOVEs"

Here I want to write such a method that "it creates a game and animates
moves and finishes the game." To make this happen, what should I do? 

Here is the thought in my head.

1 - Define the moveDao in the GameManagerImpl.
2 - Write a method named animateGame(). Call moveDao.save() method to save
MOVEs to the database. in this animateGame() method.

If this approach is good, What and How should I define it in the
GameManagerImpl, in GameManagerImpl to test this method and in
application-context.xml.

Code samples would be better, of course.

BTW Is there a best practises project for Appfuse2, For this kind of stuff? 

Thanks,

-- 
View this message in context: 
http://www.nabble.com/-Appfuse2.0--Best-Practise-Design-Pattern-for-Multiple-Dao-Access-from-managers-tf4931976s2369.html#a14116309
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to