@Override public void onPostInsert(PostInsertEvent event) { Object entity = event.getEntity(); callbackRegistry.postCreate(entity); }
@Override public boolean requiresPostCommitHanding(EntityPersister persister) { return callbackRegistry.hasRegisteredCallbacks( persister.getMappedClass(), CallbackType.POST_PERSIST); }
@Override public void onPostLoad(PostLoadEvent event) { Object entity = event.getEntity(); callbackRegistry.postLoad(entity); }