entityManager.refresh(user);. 您可以使用EntityManager的flush()方法,強制EntityManager中管理的所有Entity對應的資料表格與Entity的狀態同步:.
確定! 回上一頁