@Test public void testGraphsWithDifferentClassNotEqual() { final EntityGraph namedEntityGraph = new NamedEntityGraph(EntityGraphType.LOAD, "graph"); final EntityGraph dynamicEntityGraph = new DynamicEntityGraph(EntityGraphType.LOAD, Lists.newArrayList("path")); assertNotEquals(dynamicEntityGraph, namedEntityGraph); assertNotEquals(dynamicEntityGraph.hashCode(), namedEntityGraph.hashCode()); }
@Override public int hashCode() { return Objects.hash(attributePaths, getEntityGraphType(), isOptional()); }
DynamicEntityGraph extends AbstractEntityGraph { @Override public int hashCode() { return Objects.hash(attributePaths, getEntityGraphType(), isOptional()); } }
DynamicEntityGraph extends AbstractEntityGraph { @Override public int hashCode() { return Objects.hash(attributePaths, getEntityGraphType(), isOptional()); } DynamicEntityGraph(List<String> attributePaths);  DynamicEntityGraph(EntityGraphType type, List<String> attributePaths); }
DynamicEntityGraph extends AbstractEntityGraph { @Override public int hashCode() { return Objects.hash(attributePaths, getEntityGraphType(), isOptional()); } DynamicEntityGraph(List<String> attributePaths);  DynamicEntityGraph(EntityGraphType type, List<String> attributePaths); @Override List<String> getEntityGraphAttributePaths(); @Override final String getEntityGraphName(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
DynamicEntityGraph extends AbstractEntityGraph { @Override public int hashCode() { return Objects.hash(attributePaths, getEntityGraphType(), isOptional()); } DynamicEntityGraph(List<String> attributePaths);  DynamicEntityGraph(EntityGraphType type, List<String> attributePaths); @Override List<String> getEntityGraphAttributePaths(); @Override final String getEntityGraphName(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }