Re: Thanks, and back to enums

From: Mike Kienenberger (mkienen..laska.net)
Date: Mon Apr 05 2004 - 12:47:19 EDT

  • Next message: Todd O'Bryan: "Re: Thanks, and back to enums"

    Of course, for those methods you use all the time, you can create even more
    specific accessors on specific Entities. For example, here's one I have on
    my User entity:

            public static User getUserForUserName(DataContext aDataContext, String
    userName)
            {
                    return (User)objectMatchingKeyAndValue(aDataContext, User.class,
    "userName", userName);
            }



    This archive was generated by hypermail 2.0.0 : Mon Apr 05 2004 - 12:46:20 EDT