-->
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: one-to-many relationships and blob problems.
PostPosted: Mon Jan 19, 2004 2:38 pm 
Newbie

Joined: Tue Oct 21, 2003 6:14 pm
Posts: 11
I have two objects A ->* B. Basically a one to many relationship
between A and B.

A has few simple properties and one clob property.
B has few simple properties and one blob property.

I can save A without any problem ( with out the relationship)
similarly B I can save with out any problem.

When I try to save A and bunch of Bs I get the following errors on SQL Server ( using inet driver)
java.sql.SQLException: [TDS Driver]Unexpected end in binary parameter/value stream at position 0 required length 2379

with hypersonic sql I get
Caused by: java.lang.NegativeArraySizeException
at org.hsqldb.jdbcPreparedStatement.setBinaryStream(Unknown Source)
at net.sf.hibernate.type.BlobType.set(BlobType.java:18)

When I commented out the section for the blob property ( in the mapping xml) , basically B doesnt have the blob property, everything works fine.
Both A and Bs are getting saved properly.


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.