2009-05-13 1 views

Antwort

22

die Zählung Aggregatfunktion verwenden:

EntityManager em = ... 
Query q = em.createQuery ("SELECT count(x) FROM Magazine x"); 
Number result = (Number) q.getSingleResult(); 
Verwandte Themen