performQuery generics

From: Tore Halset (halse..vv.ntnu.no)
Date: Fri Dec 21 2007 - 04:41:44 EST

  • Next message: Andrus Adamchik: "Re: performQuery generics"

    Hello.

    I typically do a lot of

    SelectQuery query = new SelectQuery(MyEntity.class, qual);
    List entities = ctxt.performQuery(query);

    What I want instead is something like

    SelectQuery<MyEntity> query = new SelectQuery<MyEntity>(qual);
    List<MyEntity> entities = ctxt.performQuery(query);

    How can I get rid of the "MyEntity.class, " argument to the
    SelectQuery constructor?
    What about SelectQuery#setFetchingDataRows that changes the expected
    return type?
    What do you think?

    Regards,
      - Tore.



    This archive was generated by hypermail 2.0.0 : Fri Dec 21 2007 - 04:42:31 EST