| Actually the JPA spec does not allow what you suggest - a #persist call must happen in the context of a transaction. I assume you mean to say that you see a NPE - but the proper outcome should be to throw javax.persistence.TransactionRequiredException. |