@Test public void testGraphsWithDifferentTypesNotEqual() { List<String> paths = Lists.newArrayList("path1", "path2", "path3"); final DynamicEntityGraph graph1 = new DynamicEntityGraph(EntityGraphType.FETCH, paths); final DynamicEntityGraph graph2 = new DynamicEntityGraph(EntityGraphType.LOAD, paths); assertNotEquals(graph1, graph2); assertNotEquals(graph1.hashCode(), graph2.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();  }