Hibernate ORM PostDeleteEvent - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM PostDeleteEvent class.

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
Contextual code suggestions in your IDE  Get Codota for Java
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 );
	} 
 
} 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java