66
77
88import jakarta .persistence .Subgraph ;
9- import jakarta .persistence .metamodel .ManagedType ;
10- import org .hibernate .Incubating ;
119import org .hibernate .metamodel .model .domain .PersistentAttribute ;
1210
1311import java .util .Map ;
@@ -99,23 +97,27 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
9997 /**
10098 * Create and return a new value {@link SubGraph} rooted at this node,
10199 * or return an existing such {@link SubGraph} if there is one.
102- * <p>
100+ *
101+ * @deprecated This operation is not properly type safe.
103102 * Note that {@code graph.addAttributeNode(att).makeSubGraph()} is a
104103 * synonym for {@code graph.addSubgraph(att)}.
105104 *
106105 * @see Graph#addSubgraph(jakarta.persistence.metamodel.Attribute)
107106 */
107+ @ Deprecated (since = "7.0" )
108108 SubGraph <?> makeSubGraph ();
109109
110110 /**
111111 * Create and return a new key {@link SubGraph} rooted at this node,
112112 * or return an existing such {@link SubGraph} if there is one.
113- * <p>
113+ *
114+ * @deprecated This operation is not properly type safe.
114115 * Note that {@code graph.addAttributeNode(att).makeKeySubGraph()} is a
115116 * synonym for {@code graph.addMapKeySubgraph(att)}.
116117 *
117118 * @see Graph#addMapKeySubgraph(jakarta.persistence.metamodel.MapAttribute)
118119 */
120+ @ Deprecated (since = "7.0" )
119121 SubGraph <?> makeKeySubGraph ();
120122
121123 /**
@@ -125,14 +127,16 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
125127 * <p>
126128 * If the given type is a proper subtype of the value type, the result
127129 * is a treated subgraph.
128- * <p>
130+ *
131+ * @deprecated This operation is not properly type safe.
129132 * Note that {@code graph.addAttributeNode(att).makeSubGraph(cl)}
130133 * is a synonym for {@code graph.addTreatedSubgraph(att,cl)}.
131134 *
132135 * @param subtype The type or treated type of the value type
133136 *
134137 * @see Graph#addTreatedSubgraph(jakarta.persistence.metamodel.Attribute, Class)
135138 */
139+ @ Deprecated (since = "7.0" )
136140 <S > SubGraph <S > makeSubGraph (Class <S > subtype );
137141
138142 /**
@@ -142,43 +146,15 @@ public interface AttributeNode<J> extends GraphNode<J>, jakarta.persistence.Attr
142146 * <p>
143147 * If the given type is a proper subtype of the key type, the result
144148 * is a treated subgraph.
145- * <p>
149+ *
150+ * @deprecated This operation is not properly type safe.
146151 * Note that {@code graph.addAttributeNode(att).makeKeySubGraph(cl)}
147152 * is a synonym for {@code graph.addTreatedMapKeySubgraph(att,cl)}.
148153 *
149154 * @param subtype The type or treated type of the key type
150155 *
151156 * @see Graph#addTreatedMapKeySubgraph(jakarta.persistence.metamodel.MapAttribute,Class)
152157 */
158+ @ Deprecated (since = "7.0" )
153159 <S > SubGraph <S > makeKeySubGraph (Class <S > subtype );
154-
155- /**
156- * Create and return a new value {@link SubGraph} rooted at this node,
157- * with the given type, which may be a subtype of the value type,
158- * or return an existing such {@link SubGraph} if there is one.
159- * <p>
160- * If the given type is a proper subtype of the value type, the result
161- * is a treated subgraph.
162- *
163- * @param subtype The type or treated type of the value type
164- *
165- * @since 7.0
166- */
167- @ Incubating
168- <S > SubGraph <S > makeSubGraph (ManagedType <S > subtype );
169-
170- /**
171- * Create and return a new value {@link SubGraph} rooted at this node,
172- * with the given type, which may be a subtype of the key type,
173- * or return an existing such {@link SubGraph} if there is one.
174- * <p>
175- * If the given type is a proper subtype of the key type, the result
176- * is a treated subgraph.
177- *
178- * @param subtype The type or treated type of the key type
179- *
180- * @since 7.0
181- */
182- @ Incubating
183- <S > SubGraph <S > makeKeySubGraph (ManagedType <S > subtype );
184160}
0 commit comments