On Thursday, August 18, 2011 2:43:47 PM UTC+2, Alexander Orlov wrote:
> public void setUser(final Integer userId) {
> this.user = User.find(userId); // this is what I need to do using
> the "static" way
>
> // below is what I have to do when I'm using SL
> // MainServiceLocator mainServiceLocator = new
> MainServiceLocator();
> // UserDAOService userService = (UserDAOService)
> mainServiceLocator.getInstance(UserDAOService.class);
> // userService.find(User.class, userId)
> }
>
I think that's better within the data model:
this.user = (User)entityController.find(User.class, userId);
--
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/-/-PpMWb1t4LIJ.
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.