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