Code example for PostDeleteEvent

Methods: getEntity

0
	public EJB3PostDeleteEventListener(EntityCallbackHandler callbackHandler) {
		this.callbackHandler = callbackHandler;
	} 
 
	public void onPostDelete(PostDeleteEvent event) {
		Object entity = event.getEntity();
		callbackHandler.postRemove( entity );
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java