-->
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: Blob may not be manipulated from creating session
PostPosted: Thu Nov 13, 2003 6:03 pm 
Regular
Regular

Joined: Sun Oct 26, 2003 9:02 pm
Posts: 90
Hi

I'm using a JavaBean with a java.sql.Clob. When I create the Clob and try to modify it I get:

java.lang.UnsupportedOperationException: Blob may not be manipulated from creating session.

This means that I cannot modify a Clob after I created it in the session??

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 13, 2003 8:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
not unless you call refresh() on the owning object


Top
 Profile  
 
 Post subject: Shouldn't "load" have the same effect as "ref
PostPosted: Fri Nov 14, 2003 4:15 pm 
Regular
Regular

Joined: Sun Oct 26, 2003 9:02 pm
Posts: 90
Hi

But I'm getting the exception when I load the object. For example:

PersistantItem item;

item = new PersistantItem ();
item.setValue ("Whatever");

session.save ();

item = (Item) session.load (PersistantItem.class, item.getId ());

When I do setValue I create a new CLOB object with that value. The exception is thrown in session.load. Shouldn't "load" have the same effect as "refresh"???

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 14, 2003 7:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
load returns the item from the session cache, of course. it does not do a refresh.


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.