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;String>> cq = cb.createQuery(List<String>.class);
CriteriaQuery<List;String>> cq = cb.createQuery(List<String>.class); is
mistake.
hoe to do it.
thanks!
@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;String>> cq = cb.createQuery(List<String>.class);
CriteriaQuery<List;String>> cq = cb.createQuery(List<String>.class); is
mistake.
hoe to do it.
thanks!