]
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: