Java Jooq的addOrderBy()方法有什么问题?
我正在使用Jooq和下面的代码Java Jooq的addOrderBy()方法有什么问题?,java,jooq,Java,Jooq,我正在使用Jooq和下面的代码 SelectQuery<Record> selectQuery = transaction.selectQuery(); 但现在在上面的一行中,我得到了编译时异常 The method addOrderBy(Field<?>...) in the type SelectQuery<Record> is not applicable for the arguments (List<SortField<T>>
SelectQuery<Record> selectQuery = transaction.selectQuery();
但现在在上面的一行中,我得到了编译时异常
The method addOrderBy(Field<?>...) in the type SelectQuery<Record> is not applicable for the arguments (List<SortField<T>>)
类型SelectQuery中的addOrderBy(字段…)方法不适用于参数(列表)
我做错了什么?jOOQ API中有一个缺陷,如中所述。目前,必须调整
orderByValue1
列表的类型:
// Correct type:
List<SortField<?>> orderByValue1;
// Wrong type
List<SortField<T>> orderByValue1;
//正确的类型:
Listjooqapi中有一个缺陷,如中所述。目前,必须调整orderByValue1
列表的类型:
// Correct type:
List<SortField<?>> orderByValue1;
// Wrong type
List<SortField<T>> orderByValue1;
//正确的类型:
列表
// Correct type:
List<SortField<?>> orderByValue1;
// Wrong type
List<SortField<T>> orderByValue1;