JPQL-UPDATE联合表值条件表达式

Query query = em
.createQuery("UPDATE TerminalUnit AS term SET term.description=:desc WHERE term.user = (from User as u where u.code=:usercode)");

你可能感兴趣的:(JPQL-UPDATE联合表值条件表达式)