File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes adv of searializing java beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "adv of searializing java beans" Watch "adv of searializing java beans" New topic
Author

adv of searializing java beans

nancy andrew
Ranch Hand

Joined: Jan 19, 2010
Posts: 30
Why do we generally searialize our java beans (POJO) when it is not shared across the appplication, when we are not passing over the n/w, no input output operations. If only purpose of beans is to save the state of object, why cant we save it in underlying db. Kindly explain
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Who says we do?
nancy andrew
Ranch Hand

Joined: Jan 19, 2010
Posts: 30
So you mean to say, it is not nessesary to serialize java been if we dont need the above mentioned. Another question, in hibernate is it nessesary to serialize the table mapping beans?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

By "serialize" do you mean "implements Serializeable"? Because "serializing" is the actual *act* of writing the object. "To serialize" means to write the object.

Re: Hibernate:

http://docs.jboss.org/hibernate/stable/core/reference/en/html/tutorial.html#tutorial-firstapp-firstclass
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

(Although objects stored in the session may be serialized depending on the session mechanism, how the container is set up to handle restarts, etc.)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19557
    
  16

nancy andrew wrote:n/w

Please UseRealWords. I first read that as "north-west" instead of "network". And the "adv" should also be "advantage(s)".


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adv of searializing java beans
 
Similar Threads
Entity Beans ejbStore and ejbLoad over head
Free IDEs
What's the difference between entity beans and entity classes?
are entity beans EJB3?
why to save same name as class