have entity like:
@Entity
public class CompanyAttribute extends SliceJpaObject {
        @PersistentCollection(fetch = FetchType.EAGER)
        private List<String> attributeList = new ArrayList<String>();
        ......
}

now need to select the List property 'attributeList' only in criteria query,
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<List&lt;String>> cq = cb.createQuery(List<String>.class);

CriteriaQuery<List&lt;String>> cq = cb.createQuery(List<String>.class); is
mistake.
hoe to do it.

thanks!



--
View this message in context: 
http://openjpa.208410.n2.nabble.com/how-to-query-list-property-with-criteria-query-tp7587532.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to