• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Serialization

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

While implementing serialization if some attribute is removed from object which is already serialized then will deserialization automatically adjust that.

My understanding

deserialization will return exactly what has been serialized and how we will find out if that is same by serialversion id.

Please confirm my understanding.

Also can we store object in one column of table while other column contain primitves..if yes how?


Thanks
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the serialized data changes, then the serial version ID should change, and then deserialization using the old class will no longer work. If you want to avoid many of binary serialization's problems, consider having your object follow JavaBean conventions, and use XML serialization using the java.beans.XMLEncoder and XMLDecoder classes.
 
reply
    Bookmark Topic Watch Topic
  • New Topic