Make sure to wrap methods modifying your database (e.g. entity.persist() ) within a transaction. Marking a CDI bean method @Transactional will do that for you ...
確定! 回上一頁