Code example for HibernateException

0
            return ( (Boolean) value ).booleanValue();
        } 
        if ( String.class.isInstance( value ) ) {
            return Boolean.parseBoolean( (String) value );
        } 
        throw new HibernateException(
                "Could not determine how to handle configuration value [name=" + name + ", value=" + value + "] as boolean"
        ); 
    } 
 
    /** 
     * Get the config value as an int 
     * 
     * @param name The config setting name. 
     * @param values The map of config values 
     * @param defaultValue The default value to use if not found 
     * 
     * @return The value. 
     */ 
    public static int getInt(String name, Map values, int defaultValue) {
Connect your IDE to all the code out there  Get Codota for Java