Friday, December 9, 2011

Re: Doubt about object passed to a constructor in GWT

Thank you for your suggestions!!


---------- Forwarded message ----------
From: Jens <jens.nehlme...@gmail.com>
Date: Dec 8, 11:54 pm
Subject: Doubt about object passed to a constructor in GWT
To: Google Web Toolkit


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 post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate