User: oberg
Date: 00/11/30 00:18:00
Modified: src/main/org/jboss/ejb/plugins/jaws/jdbc
JDBCStoreEntityCommand.java
Log:
Bug with tuned updates and null old field was fixed. Thanks to Tobias Frech for
reporting.
Revision Changes Path
1.6 +2 -2
jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCStoreEntityCommand.java
Index: JDBCStoreEntityCommand.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCStoreEntityCommand.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- JDBCStoreEntityCommand.java 2000/09/09 02:52:56 1.5
+++ JDBCStoreEntityCommand.java 2000/11/30 08:17:59 1.6
@@ -30,7 +30,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Joe Shevland</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Sebastien Alborini</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class JDBCStoreEntityCommand
extends JDBCUpdateCommand
@@ -161,7 +161,7 @@
protected final boolean changed(Object current, Object old)
{
- return (current == null) ? (old != null) : !current.equals(old);
+ return (current == null) ? (old != null) : (old == null ? true :
!current.equals(old));
}
/**