This sounds like the right way to do it... Here's my theory:
Do you have proxies and lazy loading set up for this set? If so, when the object is deserialized, the Session, which is transient, will be gone, and your object will not be associated with a Session anymore. When you access the Set, it will be empty and, since you're not associated with a Session, it won't populate from the database. Jason > -----Original Message----- > From: Anoop Ranganath [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 01, 2003 12:13 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] session scoped component missing fields > > > On Wednesday, October 1, 2003, at 11:35 AM, Jason Carreira wrote: > > > Is your Set Serializable? Is it marked as transient? > > Hmm, the Set comes from Hibernate, and according to Hibernate, > net.sf.hibernate.collection.PersistentCollection implements > java.io.Serializable. There are a lot of transient fields on it > though, like the SessionImplementor for example. That may be > the root > of the problem. I'll dig a little deeper and see what I can > figure out. > > The motivation from the question comes from a problem i'm trying to > solve elegantly. We are displaying a form on the screen that > contains > some, but not all of the fields on a persistent object. The action > tries to persist the object, but any fields not on the screen are > obliterated. We moved the object to the Session scope, and now just > this Set is getting obliterated. > > Are we goign about this the wrong way? Any ideas? > > Anoop > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork