private OracleTypesHelper() { int typeCode = -99; try { typeCode = extractOracleCursorTypeValue(); } catch (Exception e) { log.warn( "Unable to resolve Oracle CURSOR JDBC type code", e ); } oracleCursorTypeSqlType = typeCode; }
private static void writeSerFile(Serializable binding, File xmlFile, File serFile) { try { log.debugf( "Writing cache file for: %s to: %s", xmlFile.getAbsolutePath(), serFile.getAbsolutePath() ); SerializationHelper.serialize( binding, new FileOutputStream( serFile ) ); boolean success = serFile.setLastModified( System.currentTimeMillis() ); if ( !success ) { log.warn( "Could not update cacheable hbm.xml bin file timestamp" ); } } catch ( Exception e ) { log.unableToWriteCachedFile( serFile.getAbsolutePath(), e.getMessage() ); } }
/** * Extract the MultiTenancyStrategy from the setting map. * * @param properties The map of settings. * * @return The selected strategy. {@link #NONE} is always the default. */ public static MultiTenancyStrategy determineMultiTenancyStrategy(Map properties) { final Object strategy = properties.get( Environment.MULTI_TENANT ); if ( strategy == null ) { return MultiTenancyStrategy.NONE; } if ( MultiTenancyStrategy.class.isInstance( strategy ) ) { return (MultiTenancyStrategy) strategy; } final String strategyName = strategy.toString(); try { return MultiTenancyStrategy.valueOf( strategyName.toUpperCase(Locale.ROOT) ); } catch ( RuntimeException e ) { LOG.warn( "Unknown multi tenancy strategy [ " +strategyName +" ], using MultiTenancyStrategy.NONE." ); return MultiTenancyStrategy.NONE; } } }
@Override public void addFetchProfile(FetchProfile profile) { if ( profile == null || profile.getName() == null ) { throw new IllegalArgumentException( "Fetch profile object or name is null: " + profile ); } FetchProfile old = fetchProfileMap.put( profile.getName(), profile ); if ( old != null ) { log.warn( "Duplicated fetch profile with same name [" + profile.getName() + "] found." ); } }
LOG.warn( "--text or --quiet was used; prefer --target=none|(stdout|database|script)*" );
String warnMessage = "SQL Error: " + sqlException.getErrorCode() + ", SQLState: " + sqlException.getSQLState(); if ( !previousWarnMessages.contains( warnMessage ) ) { LOG.warn( warnMessage ); previousWarnMessages.add( warnMessage );
@Override public void execute(Connection connection) { try { Statement statement = connection.createStatement(); try { statement.executeUpdate( logStatement( factory, idTableInfo.getIdTableDropStatement() ) ); factory.getServiceRegistry() .getService( JdbcServices.class ) .getSqlExceptionHelper() .handleAndClearWarnings( statement, WARNING_HANDLER ); } finally { try { statement.close(); } catch( Throwable ignore ) { // ignore } } } catch( Exception e ) { log.warn( "unable to drop temporary id table after use [" + e.getMessage() + "]" ); } } }
LOG.warn( "The batch containing " + latestBatches.size() + " statements could not be sorted after " + maxIterations + " iterations. " + "This might indicate a circular entity relationship." );
LOG.warn( "Multiple hibernate.cfg.xml files found in the persistence bundle. Using the first one discovered." );
LOG.warn( "Unable to close temporary session used to load lazy collection associated to no session" );
log.warn( e.getMessage() + " Ignoring" );
LOG.warn( "Unable to close temporary session used to load lazy proxy associated to no session" );
private OracleTypesHelper() { int typeCode = -99; try { typeCode = extractOracleCursorTypeValue(); } catch (Exception e) { log.warn( "Unable to resolve Oracle CURSOR JDBC type code", e ); } oracleCursorTypeSqlType = typeCode; }
private static void writeSerFile(Serializable binding, File xmlFile, File serFile) { try { log.debugf( "Writing cache file for: %s to: %s", xmlFile.getAbsolutePath(), serFile.getAbsolutePath() ); SerializationHelper.serialize( binding, new FileOutputStream( serFile ) ); boolean success = serFile.setLastModified( System.currentTimeMillis() ); if ( !success ) { log.warn( "Could not update cacheable hbm.xml bin file timestamp" ); } } catch ( Exception e ) { log.unableToWriteCachedFile( serFile.getAbsolutePath(), e.getMessage() ); } }
@Override public void addFetchProfile(FetchProfile profile) { if ( profile == null || profile.getName() == null ) { throw new IllegalArgumentException( "Fetch profile object or name is null: " + profile ); } FetchProfile old = fetchProfileMap.put( profile.getName(), profile ); if ( old != null ) { log.warn( "Duplicated fetch profile with same name [" + profile.getName() + "] found." ); } }