-->
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: Need to send datamodel objects as a message to a MDB
PostPosted: Sat Mar 26, 2005 12:07 pm 
Newbie

Joined: Sat Mar 26, 2005 7:55 am
Posts: 5
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Hello All ,

i need to communicate all data events - CRUD to a MDB [which further uses the objects to send email notifications to end users].

Since the datamodel is such that each object for .e.g User holds a reference to some other object like Account which in turn contains a collection of User objects. If i send a User object to a MDB as part of a JMS message the whole object graph will be serialized [ i am only interested in sending the actual object which was added/updated/etc].

I can do two things to prevent the whole object graph serialization :

i. make the collections reference and other references transient.
ii. implement clone() , do a deep copy and set the references which i dont want to be serialized as null.

will setting the object references as transient affect the working of hibernate ?
i just started using hibernate and i am not too experienced with it.

if you have any other idea please do let me know.

thanks much ,
manu


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.