daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public List<Utilisateur> findAllUtilisateur() {
  2.         CriteriaBuilder cb = this.entityManager.getCriteriaBuilder();
  3.         CriteriaQuery<Utilisateur> cq = cb.createQuery(Utilisateur.class);
  4.         Root<Utilisateur> rootEntry = cq.from(Utilisateur.class);
  5.         CriteriaQuery<Utilisateur> all = cq.select(rootEntry);
  6.         TypedQuery<Utilisateur> allQuery = this.entityManager.createQuery(all);
  7.         List<Utilisateur> list = allQuery.getResultList();
  8.         Collections.sort(list);
  9.         return list;
  10.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top