package org.hedgecode.snooker.json;
-import java.io.Serializable;
-
import org.hedgecode.snooker.api.IdEntity;
/**
*
* @author Dmitry Samoshin aka gotty
*/
-public abstract class JsonIdEntity
- extends JsonURLEntity
- implements IdEntity, Serializable
-{
+public abstract class JsonIdEntity extends JsonURLEntity implements IdEntity {
+
@Override
public boolean equals(Object obj) {
if (this == obj)
@Override
public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + getId();
+ int result = getClass().getSimpleName().hashCode();
+ result = 31 * result + getId();
return result;
}