On Nov 20, 2007, at 8:39 PM, Kevin Menard wrote:
> Generally I like the idea. The fewer casts I have to make in my code
> afterward, the happier I am. Although, as is, I can make an unchecked
> assignment and forego the cast anyway.
> I think you'll run into issues with a few other queries as well,
> such as
> NamedQuery and ObjectIdQuery. I guess you could require a new class
> parameter for them, but it wouldn't be backward compatible.
> Likewise, you
> could force a cast if they're used anonymously, but it's the same
> problem
> you're trying to fix, just in a different place.
I guess any query that does not take a class (SelectQuery may also be
entity-name based) would be Query<?>, resulting in List<?> returned.
Andrus
This archive was generated by hypermail 2.0.0 : Tue Nov 20 2007 - 14:12:33 EST