[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5711) Environment.useStreamsForBinary() misuse in AbstractStandardBasicType.nullSafeGet

Stephane Landelle (JIRA) noreply at atlassian.com
Tue Nov 2 05:22:49 EDT 2010


Environment.useStreamsForBinary() misuse in AbstractStandardBasicType.nullSafeGet
---------------------------------------------------------------------------------

                 Key: HHH-5711
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5711
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.6.0
            Reporter: Stephane Landelle


AbstractStandardBasicType.nullSafeGet is based upon Environment.useStreamsForBinary().

This strategy fails when "hibernate.jdbc.use_streams_for_binary" is not set in the Environment (in hibernate.properties for example) but in the Configuration (explicitely, or when setting OracleDialect), when building the SessionFactory.

IMHO, AbstractStandardBasicType should be consistent with the Session and use the SessionFactory properties.

In AbstractStandardBasicType.nullSafeGet, one could simply do :
PropertiesHelper.getBoolean(Environment.USE_STREAMS_FOR_BINARY, session.getFactory().getProperties());

This issue causes HHH-5659.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list