baliukas wrote:
Things become very trivial if you will drop statement "more OO is better".
Well, I'd like to put my business logic in my model - or else I end up just using Hibernate as an old style DAO, shovelling mindless DTOs around, with all my business logic in "services".
So ideally, I'd like to ask my order "areYouValid".
This could be done efficiently in the model (with a size query) if the model contacted Hibernate (/DAO) directly, but there is a large amount of evidence against using that as an approach on this forum.
So I guess Im just confused as what the best practise is in this sort of case