You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by Radu Creanga <rd...@gmail.com> on 2014/06/12 16:53:08 UTC

Data Module - Criteria Support

Hi @all,

I am just trying out the data module and it seems that the
CriteriaSupport#count() method is too restrictive on the attribute
parameter type. The current declaration is:

<N extends Number> QuerySelection<E, N> count(SingularAttribute<E, N>
attribute);

while it should probably be:

<N extends Number> QuerySelection<E, N> count(SingularAttribute<E, ?>
attribute);

That's because when using the Criteria API alone, there is no such
restriction to the attribute type. Could this be an oversight?

Best regards,
Radu