Commit 5a1e8dc2 authored by Noel Alonso's avatar Noel Alonso
Browse files

Cambia equal, no procesa algunos campos de type

En el caso de type dentro de vessel, puede que no esté enriquecido y al
comparar, no sean iguales. Por ello, se cambia el método para no tener
en cuenta los campos no enriquecidos
parent 7e71c92b
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -285,8 +285,21 @@ public class VesselDTO extends CommonDTO {
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
		} else {
			// vessel type solo se tiene en cuenta id y code
			VesselTypeDTO otherType = other.type;
			if (type.getId() == null) {
				if (otherType.getId() != null)
					return false;
			} else if (!type.getId().equals(otherType.getId()))
				return false;

			if (type.getCode() == null) {
				if (otherType.getCode() != null)
					return false;
			} else if (!type.getCode().equals(otherType.getCode()))
				return false;
		}
		return true;
	}