@@ -68,11 +68,29 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
68
68
*/
69
69
Map <Class <?>, ? extends SubGraph <?>> getKeySubGraphs ();
70
70
71
+ /**
72
+ * All value subgraphs rooted at this node.
73
+ * <p>
74
+ * Includes treated subgraphs.
75
+ *
76
+ * @apiNote This operation is declared with raw types by JPA
77
+ *
78
+ * @see #getSubGraphs()
79
+ */
71
80
@ Override
72
81
default @ SuppressWarnings ("rawtypes" ) Map <Class , Subgraph > getSubgraphs () {
73
82
return unmodifiableMap ( getSubGraphs () );
74
83
}
75
84
85
+ /**
86
+ * All key subgraphs rooted at this node.
87
+ * <p>
88
+ * Includes treated subgraphs.
89
+ *
90
+ * @apiNote This operation is declared with raw types by JPA
91
+ *
92
+ * @see #getKeySubGraphs()
93
+ */
76
94
@ Override
77
95
default @ SuppressWarnings ("rawtypes" ) Map <Class , Subgraph > getKeySubgraphs () {
78
96
return unmodifiableMap ( getKeySubGraphs () );
@@ -81,12 +99,22 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
81
99
/**
82
100
* Create and return a new value {@link SubGraph} rooted at this node,
83
101
* or return an existing such {@link SubGraph} if there is one.
102
+ * <p>
103
+ * Note that {@code graph.addAttributeNode(att).makeSubGraph()} is a
104
+ * synonym for {@code graph.addSubgraph(att)}.
105
+ *
106
+ * @see Graph#addSubgraph(jakarta.persistence.metamodel.Attribute)
84
107
*/
85
108
SubGraph <?> makeSubGraph ();
86
109
87
110
/**
88
111
* Create and return a new key {@link SubGraph} rooted at this node,
89
112
* or return an existing such {@link SubGraph} if there is one.
113
+ * <p>
114
+ * Note that {@code graph.addAttributeNode(att).makeKeySubGraph()} is a
115
+ * synonym for {@code graph.addMapKeySubgraph(att)}.
116
+ *
117
+ * @see Graph#addMapKeySubgraph(jakarta.persistence.metamodel.MapAttribute)
90
118
*/
91
119
SubGraph <?> makeKeySubGraph ();
92
120
@@ -97,8 +125,13 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
97
125
* <p>
98
126
* If the given type is a proper subtype of the value type, the result
99
127
* is a treated subgraph.
128
+ * <p>
129
+ * Note that {@code graph.addAttributeNode(att).makeSubGraph(cl)}
130
+ * is a synonym for {@code graph.addTreatedSubgraph(att,cl)}.
100
131
*
101
132
* @param subtype The type or treated type of the value type
133
+ *
134
+ * @see Graph#addTreatedSubgraph(jakarta.persistence.metamodel.Attribute, Class)
102
135
*/
103
136
<S > SubGraph <S > makeSubGraph (Class <S > subtype );
104
137
@@ -109,8 +142,13 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
109
142
* <p>
110
143
* If the given type is a proper subtype of the key type, the result
111
144
* is a treated subgraph.
145
+ * <p>
146
+ * Note that {@code graph.addAttributeNode(att).makeKeySubGraph(cl)}
147
+ * is a synonym for {@code graph.addTreatedMapKeySubgraph(att,cl)}.
112
148
*
113
149
* @param subtype The type or treated type of the key type
150
+ *
151
+ * @see Graph#addTreatedMapKeySubgraph(jakarta.persistence.metamodel.MapAttribute,Class)
114
152
*/
115
153
<S > SubGraph <S > makeKeySubGraph (Class <S > subtype );
116
154
@@ -123,6 +161,8 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
123
161
* is a treated subgraph.
124
162
*
125
163
* @param subtype The type or treated type of the value type
164
+ *
165
+ * @since 7.0
126
166
*/
127
167
@ Incubating
128
168
<S > SubGraph <S > makeSubGraph (ManagedType <S > subtype );
@@ -136,6 +176,8 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
136
176
* is a treated subgraph.
137
177
*
138
178
* @param subtype The type or treated type of the key type
179
+ *
180
+ * @since 7.0
139
181
*/
140
182
@ Incubating
141
183
<S > SubGraph <S > makeKeySubGraph (ManagedType <S > subtype );
0 commit comments