java - What wrong here in addOrderBy() method of Jooq? -
i using jooq , using below code
selectquery<record> selectquery = transaction.selectquery();
now jooq telling have method check here can pass collection , doing same, check below
list<sortfield<t>> orderbyvalue1;
and doing this
selectquery.addorderby(orderbyvalue1);
but in above line getting compile time exception
the method addorderby(field<?>...) in type selectquery<record> not applicable arguments (list<sortfield<t>>)
what doing wrong here?
there's flaw in jooq api, described in issue #2719. time being, type of orderbyvalue1
list must adapted:
// correct type: list<sortfield<?>> orderbyvalue1; // wrong type list<sortfield<t>> orderbyvalue1;
note above types not same. more info, consider reading oracle tutorial documentation on generics.
Comments
Post a Comment