cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: generics and ObjectContext
Date Tue, 20 Nov 2007 19:34:22 GMT

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

Mime
View raw message