I have cassandra intalled a computer.... I try create a template to make dinamics query with JPA. This is implemente.
public <E extends Object> List<E> getAll(E e){But when I executed this progran throw a exception
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<E> q = cb.createQuery((Class<E>) e);
Root<E> c = q.from((Class<E>) e);
return (List<E>) q.select(c);
}
NotImplementedException: TODO
at com.impetus.kundera.persistence.EntityManagerFactoryImpl.getCriteriaBuilder(EntityManagerFactoryImpl.java:199)
at com.impetus.kundera.persistence.EntityManagerImpl.getCriteriaBuilder(EntityManagerImpl.java:682)
Thanks. This is on Kundera's RoadMap. But still you should be moved ahead with JPQL queries!
ReplyDelete-Vivek