@Test public void testGraphsWithSameNamesEqual() { final EntityGraph graph1 = EntityGraphs.named("graph"); final EntityGraph graph2 = EntityGraphs.named("graph"); assertEquals(graph1, graph2); assertEquals(graph1.hashCode(), graph2.hashCode()); }
@Override public int hashCode() { return Objects.hash(name, getEntityGraphType(), isOptional()); }
NamedEntityGraph extends AbstractEntityGraph { @Override public int hashCode() { return Objects.hash(name, getEntityGraphType(), isOptional()); } }
NamedEntityGraph extends AbstractEntityGraph { @Override public int hashCode() { return Objects.hash(name, getEntityGraphType(), isOptional()); } NamedEntityGraph(EntityGraphType type, boolean optional, String name);  NamedEntityGraph(EntityGraphType type, String name);  NamedEntityGraph(String name); }
NamedEntityGraph extends AbstractEntityGraph { @Override public int hashCode() { return Objects.hash(name, getEntityGraphType(), isOptional()); } NamedEntityGraph(EntityGraphType type, boolean optional, String name);  NamedEntityGraph(EntityGraphType type, String name);  NamedEntityGraph(String name); @Override String getEntityGraphName(); @Override final List<String> getEntityGraphAttributePaths(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
NamedEntityGraph extends AbstractEntityGraph { @Override public int hashCode() { return Objects.hash(name, getEntityGraphType(), isOptional()); } NamedEntityGraph(EntityGraphType type, boolean optional, String name);  NamedEntityGraph(EntityGraphType type, String name);  NamedEntityGraph(String name); @Override String getEntityGraphName(); @Override final List<String> getEntityGraphAttributePaths(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }