Best code examples for Hibernate ORM PostDeleteEvent class (org.hibernate.event.spi.PostDeleteEvent)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM PostDeleteEvent class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM PostDeleteEvent examples from Open Source projects
This code example shows how to use the following methods: getDeletedState, getId, getPersister, getSession
		super( enversConfiguration );
	} 
 
	@Override 
	public void onPostDelete(PostDeleteEvent event) {
        String entityName = event.getPersister().getEntityName();
 
        if ( getAuditConfiguration().getEntCfg().isVersioned( entityName ) ) {
            AuditProcess auditProcess = getAuditConfiguration().getSyncManager().get( event.getSession() );
 
            AuditWorkUnit workUnit = new DelWorkUnit(
					event.getSession(),
					event.getPersister().getEntityName(),
					getAuditConfiguration(), 
                    event.getId(),
					event.getPersister(),
					event.getDeletedState()
			); 
            auditProcess.addWorkUnit( workUnit );
 

6
CodeRank
This code example shows how to use the following methods: getEntity
	public EJB3PostDeleteEventListener(EntityCallbackHandler callbackHandler) {
		this.callbackHandler = callbackHandler;
	} 
 
	public void onPostDelete(PostDeleteEvent event) {
		Object entity = event.getEntity();
		callbackHandler.postRemove( entity );
	} 
 
} 
Full Snippet Info
4
CodeRank