-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate.jdbc.use_binary_for_streams
PostPosted: Sat Oct 23, 2004 3:04 pm 
Newbie

Joined: Sat Oct 23, 2004 2:49 pm
Posts: 1
Greetings all,

I am using Hibernate with Oracle 10 to read/write images to/from the database. I need to turn on the hibernate.jdbc.use_streams_for_binary option given the Oracle limitations. I noticed the documentation notes: "This is a JVM-level setting only." I am not sure what is meant by that.

Given that my mapping file below fails (note I also tried property name="hibernate.jdbc..."), I am assuming that it must be set elsewhere.

Based on testing I know that I can set it in Hibernate.properties, but the documentation seems to prefer the use of the XML document.

What are my options?

Thanks in advance.

Hibernate version:
2.1.6

Mapping documents:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

<hibernate-configuration>

<session-factory>

<property name="connection.datasource">java:comp/env/jdbc/UWGOracle</property>
<property name="show_sql">false</property>
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="jdbc.use_streams_for_binary">true</property>

<!-- Mapping files -->
<mapping resource="Images.hbm.xml"/>

</session-factory>


</hibernate-configuration>

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:
Oracle 10

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.