[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Thu Jan 25 13:53:55 EST 2007
User: gavin
Date: 07/01/25 13:53:55
Modified: src/main/org/jboss/seam/core AbstractMutable.java
Log:
reload entity after setting id
Revision Changes Path
1.2 +6 -6 jboss-seam/src/main/org/jboss/seam/core/AbstractMutable.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AbstractMutable.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/AbstractMutable.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- AbstractMutable.java 10 Oct 2006 19:37:37 -0000 1.1
+++ AbstractMutable.java 25 Jan 2007 18:53:55 -0000 1.2
@@ -24,14 +24,14 @@
* @param oldValue the old value of an attribute
* @param newValue the new value of an attribute
*/
- protected <T> void setDirty(T oldValue, T newValue)
+ protected <T> boolean setDirty(T oldValue, T newValue)
{
- dirty = dirty || (
- oldValue!=newValue && (
+ boolean reallyDirty = oldValue!=newValue && (
oldValue==null ||
!oldValue.equals(newValue)
- )
);
+ dirty = dirty || reallyDirty;
+ return reallyDirty;
}
/**
More information about the jboss-cvs-commits
mailing list