EQL的CAST

Query query = mgr.createQuery("from CaseEvent ce " +
		" inner join fetch ce.caseEntity cce " +
		" inner join fetch cce.status " +
		" where cce.candidate.id = ?0 order by cast(cce.caseID as long) asc");
query.setParameter(0, candidateId).getResultList();


你可能感兴趣的:(java)