40414243444546474849
@CommitAfter @PersistenceContext(unitName = AppConstants.TEST_PERSISTENCE_UNIT) void onCreate() { final User user = new User(); user.setFirstName("name"); entityManager.persist(user); }
444546474849505152535455
private Thang thang; @CommitAfter void onCreateUser() { final User user = new User(); user.setFirstName("Foo User"); entityManager.persist(user); this.user = user; }