@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof StatusberichteClp)) { return false; } StatusberichteClp statusberichte = (StatusberichteClp) obj; long primaryKey = statusberichte.getPrimaryKey(); if (getPrimaryKey() == primaryKey) { return true; } else { return false; } }