|
6 | 6 |
|
7 | 7 |
|
8 | 8 | import jakarta.persistence.Subgraph;
|
9 |
| -import org.hibernate.metamodel.model.domain.ManagedDomainType; |
| 9 | +import jakarta.persistence.metamodel.ManagedType; |
| 10 | +import org.hibernate.Incubating; |
10 | 11 | import org.hibernate.metamodel.model.domain.PersistentAttribute;
|
11 | 12 |
|
12 | 13 | import java.util.Map;
|
@@ -51,13 +52,17 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
|
51 | 52 |
|
52 | 53 | /**
|
53 | 54 | * All value subgraphs rooted at this node.
|
| 55 | + * <p> |
| 56 | + * Includes treated subgraphs. |
54 | 57 | *
|
55 | 58 | * @see jakarta.persistence.AttributeNode#getSubgraphs
|
56 | 59 | */
|
57 | 60 | Map<Class<?>, ? extends SubGraph<?>> getSubGraphs();
|
58 | 61 |
|
59 | 62 | /**
|
60 | 63 | * All key subgraphs rooted at this node.
|
| 64 | + * <p> |
| 65 | + * Includes treated subgraphs. |
61 | 66 | *
|
62 | 67 | * @see jakarta.persistence.AttributeNode#getKeySubgraphs
|
63 | 68 | */
|
@@ -89,27 +94,49 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
|
89 | 94 | * Create and return a new value {@link SubGraph} rooted at this node,
|
90 | 95 | * with the given type, which may be a subtype of the value type,
|
91 | 96 | * or return an existing such {@link SubGraph} if there is one.
|
| 97 | + * <p> |
| 98 | + * If the given type is a proper subtype of the value type, the result |
| 99 | + * is a treated subgraph. |
| 100 | + * |
| 101 | + * @param subtype The type or treated type of the value type |
92 | 102 | */
|
93 | 103 | <S> SubGraph<S> makeSubGraph(Class<S> subtype);
|
94 | 104 |
|
95 | 105 | /**
|
96 | 106 | * Create and return a new value {@link SubGraph} rooted at this node,
|
97 | 107 | * with the given type, which may be a subtype of the key type,
|
98 | 108 | * or return an existing such {@link SubGraph} if there is one.
|
| 109 | + * <p> |
| 110 | + * If the given type is a proper subtype of the key type, the result |
| 111 | + * is a treated subgraph. |
| 112 | + * |
| 113 | + * @param subtype The type or treated type of the key type |
99 | 114 | */
|
100 | 115 | <S> SubGraph<S> makeKeySubGraph(Class<S> subtype);
|
101 | 116 |
|
102 | 117 | /**
|
103 | 118 | * Create and return a new value {@link SubGraph} rooted at this node,
|
104 | 119 | * with the given type, which may be a subtype of the value type,
|
105 | 120 | * or return an existing such {@link SubGraph} if there is one.
|
| 121 | + * <p> |
| 122 | + * If the given type is a proper subtype of the value type, the result |
| 123 | + * is a treated subgraph. |
| 124 | + * |
| 125 | + * @param subtype The type or treated type of the value type |
106 | 126 | */
|
107 |
| - <S> SubGraph<S> makeSubGraph(ManagedDomainType<S> subtype); |
| 127 | + @Incubating |
| 128 | + <S> SubGraph<S> makeSubGraph(ManagedType<S> subtype); |
108 | 129 |
|
109 | 130 | /**
|
110 | 131 | * Create and return a new value {@link SubGraph} rooted at this node,
|
111 | 132 | * with the given type, which may be a subtype of the key type,
|
112 | 133 | * or return an existing such {@link SubGraph} if there is one.
|
| 134 | + * <p> |
| 135 | + * If the given type is a proper subtype of the key type, the result |
| 136 | + * is a treated subgraph. |
| 137 | + * |
| 138 | + * @param subtype The type or treated type of the key type |
113 | 139 | */
|
114 |
| - <S> SubGraph<S> makeKeySubGraph(ManagedDomainType<S> subtype); |
| 140 | + @Incubating |
| 141 | + <S> SubGraph<S> makeKeySubGraph(ManagedType<S> subtype); |
115 | 142 | }
|
0 commit comments