Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialize objects in Hibernate

 
vittal rao
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

what is the need of serializing in hibernate for eg.

public class Myuser implements Serializable{

}

are they really serialized ie converted to bytestream or how does it works wrt hibernate.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So they can be used in distributed environments and with cache implementations that may serialise them to disk.
 
vittal rao
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:So they can be used in distributed environments and with cache implementations that may serialise them to disk.


Thanks a lot how ever i am interested to know as to are they really converted to byte stream according serializable concept.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate does not do this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic