Hibernate ORM CoreMessageLogger - 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 CoreMessageLogger class.

This code example shows how to use the following methods: recognizedObsoleteHibernateNamespace, usingOldDtd, debug, debugf
	public InputSource resolveEntity(String publicId, String systemId) { 
		InputSource source = null; // returning null triggers default behavior 
		if ( systemId != null ) { 
            LOG.debugf("Trying to resolve system-id [%s]", systemId); 
			if ( systemId.startsWith( HIBERNATE_NAMESPACE ) ) { 
                LOG.debugf("Recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/"); 
				source = resolveOnClassPath( publicId, systemId, HIBERNATE_NAMESPACE ); 
			} 
			else if ( systemId.startsWith( OLD_HIBERNATE_NAMESPACE ) ) { 
                LOG.recognizedObsoleteHibernateNamespace(OLD_HIBERNATE_NAMESPACE, HIBERNATE_NAMESPACE); 
                LOG.debugf("Attempting to resolve on classpath under org/hibernate/"); 
				source = resolveOnClassPath( publicId, systemId, OLD_HIBERNATE_NAMESPACE ); 
			} 
			else if ( systemId.startsWith( USER_NAMESPACE ) ) { 
                LOG.debugf("Recognized local namespace; attempting to resolve on classpath"); 
				String path = systemId.substring( USER_NAMESPACE.length() ); 
				InputStream stream = resolveInLocalNamespace( path ); 
                if (stream == null) LOG.debugf("Unable to locate [%s] on classpath", systemId); 
				else { 
                    LOG.debugf("Located [%s] in classpath", systemId); 

6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: handlingTransientEntity, debug, isTraceEnabled, trace, tracev
		EntityEntry entityEntry = persistenceContext.getEntry( entity ); 
		final EntityPersister persister; 
		final Serializable id; 
		final Object version; 
 
		if ( entityEntry == null ) { 
            LOG.trace("Entity was not persistent in delete processing"); 
 
			persister = source.getEntityPersister( event.getEntityName(), entity ); 
 
			if ( ForeignKeys.isTransient( persister.getEntityName(), entity, null, source ) ) { 
				deleteTransientEntity( source, entity, event.isCascadeDeleteEnabled(), persister, transientEntities ); 
				// EARLY EXIT!!! 
				return; 
			} 
            performDetachedEntityDeletionCheck(event); 
 
			id = persister.getIdentifier( entity, source ); 
 
			if ( id == null ) { 

6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: debugf, isDebugEnabled
		initFromWalker( walker ); 
 
		postInstantiate(); 
 
        LOG.debugf("Static select for collection %s: %s", collectionPersister.getRole(), getSQLString()); 
	} 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: debug
This code example shows how to use the following methods: debugf, isDebugEnabled
		initFromWalker( walker ); 
 
		postInstantiate(); 
        LOG.debugf("Static select for one-to-many %s: %s", oneToManyPersister.getRole(), getSQLString()); 
	} 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE