You need to use entityManager.persist() and you will not need to use flush/clear again because the context in the entityManager is updated ...
確定! 回上一頁