You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by bo...@apache.org on 2008/12/04 23:37:15 UTC

svn commit: r723475 - /ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HMessageExchangeProperty.java

Author: boisvert
Date: Thu Dec  4 14:37:15 2008
New Revision: 723475

URL: http://svn.apache.org/viewvc?rev=723475&view=rev
Log:
ODE-451: Warning: composite-id class does not override hashCode()

Modified:
    ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HMessageExchangeProperty.java

Modified: ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HMessageExchangeProperty.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HMessageExchangeProperty.java?rev=723475&r1=723474&r2=723475&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HMessageExchangeProperty.java (original)
+++ ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HMessageExchangeProperty.java Thu Dec  4 14:37:15 2008
@@ -83,6 +83,14 @@
 	}
 
 	public boolean equals(Object another) {
+		// fake implementation to suppress hibernate warning on key not hash-searchable; 
+		// actually HMessageExchangePropery is never retrieved by the id 
 		return super.equals(another);
 	}
+	
+	public int hashCode() {
+		// fake implementation to suppress hibernate warning on key not hash-searchable
+		// actually HMessageExchangePropery is never retrieved by the id 
+		return _mex.hashCode() * 29 + _name.hashCode() * 13;
+	}
 }
\ No newline at end of file