Re: Design Questions

Originally Posted by
ryan.tyer
Ok, I have some general 'best practice' type questions for you guys/gals. When you create a data access layer, do you create it in it's own project (and if so, where do you put the definitions for the dao/service beans - the data project or the web) or do you just put the data access stuff in the web project?
Also, how do you structure your data access stuff? I typically have a data access object for each propogated object and then a service layer on top of that, but I see more and more examples with just the service layer. What about you?
Discuss!
I have a persistence package that has a dao package for interfaces and a hibernate package that has hibernate implementations of those DAO interfaces.
Persistence also contains PersistenceService interfaces with spring specific implementations in a spring directory. The persistence services are functional groups of specific functions.
In essence the persistence services use several different DAOs to handle DB access.
---------------------------------
David H. McCoy
----------------------------------