333435363738394041424344
private Thing thing; @CommitAfter void onCreateEntity() { final Thing thing = new Thing(); thing.setName("name"); entityManager.persist(thing); this.thing = thing; }