Originally posted by Akhil kumarS:
Hi Friends,
I would like to know Which design pattern is better?MVC or DAO...What is there major difference?
As Roger said, they do different things. MVC is a front end pattern and DAO is a back end pattern.
Which architecture uses stored procedures more?
Most architectures are agnostic once they get to the database technology. Your DAO could have a stored proc, Spring, Hibernate, plain
JDBC, etc. The DAO isolates the rest of the code from this design decision.
Is it better to implement business logic in SPs?
It's not inherently better. Some would argue it is better; some would argue it is worse. I think it depends on the specific situation and who is calling the code.