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

Strong Liu (JIRA) noreply at atlassian.com
Tue Nov 2 07:30:48 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Strong Liu resolved HHH-5711.
-----------------------------

    Resolution: Duplicate

see HHH-5659

> 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
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> 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