Do what feels best for you, its just personal preference I think. I prefer to only have one DAO per domain class so if I need both, an user with person and an user without person, I would go with:
- UserDAO.findByXyz(int xyz) which delegates to UserDAO.findByXyz(xyz, true) or UserDAO.findByXyz(xyz, false) depending on what you think should be your default case. - UserDAO.findByXyz(int xyz, boolean withPerson) which allows you to not follow the default case if needed. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fTWcxBl1WT8J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
