-->
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: Comparig the difference between two objects using hibernate
PostPosted: Mon Feb 15, 2010 7:16 am 
Newbie

Joined: Fri Jul 11, 2008 6:21 am
Posts: 3
Location: Sri Lanka
Hi all
im pretty new to hibernate. So my apologies if the question is too stupid.

Heres what i need to do

I have
Code:
List<String> names

object that is persisted

Before saving the object i need to show the user the difference between the modified object and the one in the database, The user can then confirm or cancel the save operation. And the appropriate action will be taken.

I was told that the comparing and displaying the differences between the objects can be done via hibernate interceptors, but i havnt been able to find such code.

I would appreciate if anyone can help me on this.

thanks in advance
sridanu


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.