-->
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.  [ 2 posts ] 
Author Message
 Post subject: Transient keyword
PostPosted: Thu Jun 23, 2005 3:13 pm 
Newbie

Joined: Thu Jun 23, 2005 3:03 pm
Posts: 1
Can I declare an attribute of a POJO object to be persisted as transient? We have a Clob attribute in the object and that gets stored in a session with clustered environment. Since Clob does not implement Serializable, we get an error. So I was wondering whether I can declare the Clob as transient? Just want to make sure that it has no impact on Hibernate persisting the Clob or reading the Clob.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 23, 2005 6:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
In HB3, a Clob property mapped as type="clob" is actually serializable (though it still cannot be accessed outside the txn). (Hibernate serializes an empty wrapper.) In other cases, declaring the field as transient is dangerous if you try to saveOrUpdate() or merge().


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.