-->
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.  [ 3 posts ] 
Author Message
 Post subject: Store Serialized Java object inside the database column usin
PostPosted: Wed Aug 12, 2009 12:48 pm 
Newbie

Joined: Sat Aug 08, 2009 2:06 pm
Posts: 3
Is their a way to store an serialised form of Arraylist directly inside a single column of Database using Hibernate


Top
 Profile  
 
 Post subject: Re: Store Serialized Java object inside the database column usin
PostPosted: Wed Aug 12, 2009 5:32 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
So, you basically want to store the results of calling toString() on your arraylist? So everything goes in one column?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
 Post subject: Re: Store Serialized Java object inside the database column usin
PostPosted: Thu Aug 13, 2009 11:16 am 
Newbie

Joined: Sat Aug 08, 2009 2:06 pm
Posts: 3
Just to summarize what i understood
In case i have an
ArrayList objArraylist;
String completeArray =objArraylist.toString();

and finally Map this string directly to a specific column of Database

I have one doubt for the above specified method
While retriveing the same String arraylist how would i be able to typecast the same back to Arraylist object??

Regards,
Mehak


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