deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Maslov <alexander.mas...@gmail.com>
Subject Criteria API empty and notEmpty methods - the Collection Attributes parameter
Date Tue, 29 Mar 2016 11:48:29 GMT
Hi All.

Does anybody know why `org.apache.deltaspike.data.api.criteria.Criteria`
methods  `empty` and `notEmpty` take `SingularAttribute` parameter and not
`PluralAttribute` ?

https://deltaspike.apache.org/javadoc/1.5.5-SNAPSHOT/org/apache/deltaspike/data/api/criteria/Criteria.html
states -

-------
<P extends
Collection<?>> Criteria<C,R>
empty(javax.persistence.metamodel.SingularAttribute<?
super C,P> att)
...
att - The collection attribute to check for emptyness.
-------

But `SingularAttribute` (
https://docs.oracle.com/javaee/6/api/javax/persistence/metamodel/SingularAttribute.html)
is

-------
Instances of the type SingularAttribute represents persistent single-valued
properties or fields.
-------

Am I missing something or is it simply wrong?

Best Regards,
  Alex

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message