-->
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.  [ 4 posts ] 
Author Message
 Post subject: Oracle - Blobs
PostPosted: Fri Jan 02, 2004 2:01 pm 
Newbie

Joined: Fri Jan 02, 2004 1:31 pm
Posts: 2
Hi!
I'm working with Hibernate and Oracle 8.
I have a problems working with Blobs...

The sourcecode is:

Blob data;

public Blob getData( )
{
return data;
}
public void setTheData(byte[] theData) {
this.data = Hibernate.createBlob(theData);
}

The error is:
Could not synchronize database state with session
java.sql.SQLException: operaci


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 02, 2004 2:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Try disabling JDBC batch updates. Set in your properties hibernate.jdbc.batch_size = 0


Top
 Profile  
 
 Post subject: hi
PostPosted: Fri Jan 02, 2004 2:22 pm 
Newbie

Joined: Fri Jan 02, 2004 1:31 pm
Posts: 2
HI!
I did this and now I have other problem:

Commit failed
java.sql.SQLException: ORA-01010: invalid OCI operation





gloeglm wrote:
Try disabling JDBC batch updates. Set in your properties hibernate.jdbc.batch_size = 0


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 02, 2004 2:26 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Oracle BLOBs are allways something good for a lot of fun. Please read http://www.hibernate.org/56.html and try the solutions presented there, I think this works, at least most of the time ;)


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

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.