Long explanation for a critical question:
I was recently browsing the documentation for the weblogic-cmp-jar.xml Deployment Descriptor Reference for Weblogic8.1 and came across something that could wreck my entire Hibernate based implementation. Here is the document:
[url]http://e-docs.bea.com/wls/docs81/ejb/DDreference-cmp-jar.html#1113301
[/url]
I am using several IMAGE columns within Sybase (which are akin to Blobs in Oracle). The above document states that the deployment descriptor for entity beans can include a dbms-column-type that specifies how Weblogic should set IMAGE column data. For sybase it says to use:
Quote:
SybaseBinary—tells the container to use setBytes to write bytes into the binary column, because setBinaryStream does not work with SybaseXADriver.
setBytes and setBinaryStream are methods of java.sql.PreparedStatement.
Although in development we are not using an XA driver, we are planning to in our production environment.
So my question is: Does Hibernate use setBinaryStream or setBytes to store binary column data?
Hibernate version:2.1.6