-->
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.  [ 1 post ] 
Author Message
 Post subject: Serialization question
PostPosted: Thu Nov 01, 2007 3:25 pm 
Beginner
Beginner

Joined: Mon Aug 22, 2005 1:22 am
Posts: 36
I have the following object managed in Hibernate.

Code:
public Foo implements java.io.Serializable {
    private Long id;
    private Bar bar;
    private Set<Baz> bazes = new HashSet<Baz>();
    ...
}


If I get an instance of Foo and place in a clustered HttpSession:

Foo foo = (Foo)session.get( Foo.class, id );
httpSession.setAttribute( "fooName", foo );

- what additional hibernate based information gets serialized?
- does Foo's entire object graph get serialized as well? is just the proxy of bar and bazes?

Thanks in advance
- Doug


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.