diff --git a/hibernate-core/src/main/java/org/hibernate/graph/Graph.java b/hibernate-core/src/main/java/org/hibernate/graph/Graph.java index f356be84d36f..bd2d62a13e9f 100644 --- a/hibernate-core/src/main/java/org/hibernate/graph/Graph.java +++ b/hibernate-core/src/main/java/org/hibernate/graph/Graph.java @@ -32,6 +32,13 @@ * combine creation of a subgraph with creation of a treated subgraph. *
* Extends the JPA-defined {@link jakarta.persistence.Graph} with additional operations. + *
+ * There are a range of ways to create {@code Graph}s: + *
employees(username, password, accessLevel, department(employees(username)))*
* The {@link #parse} methods all create a root {@link jakarta.persistence.EntityGraph} * based on the passed entity class and parse the graph string into that root graph. *
* The {@link #parseInto} methods parse the graph string into a passed graph, which may be a subgraph *
- * Multiple graphs made for the same entity type can be merged.
- * See {@link EntityGraphs#merge(EntityManager, Class, jakarta.persistence.Graph...)}.
+ * Multiple graphs for the same entity type can be
+ * {@linkplain EntityGraphs#merge(EntityManager, Class, jakarta.persistence.Graph...)
+ * merged}.
*
* @author asusnjar
*/
diff --git a/hibernate-core/src/main/java/org/hibernate/graph/internal/parse/GraphParser.java b/hibernate-core/src/main/java/org/hibernate/graph/internal/parse/GraphParser.java
index e3873f9a048a..6852ca2975f8 100644
--- a/hibernate-core/src/main/java/org/hibernate/graph/internal/parse/GraphParser.java
+++ b/hibernate-core/src/main/java/org/hibernate/graph/internal/parse/GraphParser.java
@@ -8,6 +8,7 @@
import org.hibernate.grammars.graph.GraphLanguageLexer;
import org.hibernate.grammars.graph.GraphLanguageParser;
import org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor;
+import org.hibernate.graph.GraphNode;
import org.hibernate.graph.InvalidGraphException;
import org.hibernate.graph.spi.AttributeNodeImplementor;
import org.hibernate.graph.spi.GraphImplementor;
@@ -24,7 +25,7 @@
/**
* @author Steve Ebersole
*/
-public class GraphParser extends GraphLanguageParserBaseVisitor {
+public class GraphParser extends GraphLanguageParserBaseVisitor