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
Connect your IDE to all the code out there  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 );
	} 
 
} 
Full Snippet Info
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java