The following query uses distinct keyword to get the unique value with a join condition. List l = em.createQuery( "SELECT DISTINCT e.department FROM Project p ...
確定! 回上一頁