Re: generics and ObjectContext

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Nov 20 2007 - 14:34:22 EST

  • Next message: Mikaël Cluseau: "Re: generics and ObjectContext"

    On Nov 20, 2007, at 7:02 PM, Andrus Adamchik wrote:

    > SelectQuery<Artist> q = new SelectQuery(Artist.class);

    And the correct form of the query above (if we are to parameterize
    Query interface) will look like this:

       SelectQuery<Artist> q = new SelectQuery<Artist>(Artist.class);

    So from now on all queries will have to be instantiated with <class>,
    even non-selecting ones, making things extra verbose and
    redundant ... generics really suck :-/ I may ditch the idea about the
    query parameter.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Nov 20 2007 - 14:35:01 EST