@@ -264,16 +264,11 @@ include::{extrasdir}/fetching-strategies-dynamic-fetching-entity-subgraph-exampl
264
264
----
265
265
====
266
266
267
- Specifying a subgraph is only valid for an attribute (or its "key") whose type is a ManagedType. So
268
- while an EntityGraph must correspond to an EntityType, a Subgraph is legal for any ManagedType. An
269
- attribute's key is defined as either:
267
+ Specifying a subgraph is only valid for an attribute (or its "key") whose type is a ManagedType.
268
+ So while an EntityGraph must correspond to an EntityType, a Subgraph is legal for any ManagedType.
270
269
271
- * For a singular attribute, the attribute's type must be an IdentifiableType and that IdentifiableType must
272
- have a composite identifier. The "key subgraph" is applied to the identifier type. The
273
- non-key subgraph applies to the attribute's value, which must be a ManagedType.
274
- * For a plural attribute, the attribute must be a Map and the Map's key value must be a ManagedType.
275
- The "key subgraph" is applied to the Map's key type. In this case, the non-key subgraph applies
276
- to the plural attribute's value/element.
270
+ If the attribute is a Map and the Map's key is a ManagedType, the "key subgraph" is applied to the Map's key type.
271
+ In this case, the non-key subgraph applies to the Map value/element.
277
272
278
273
279
274
[[fetching-strategies-dynamic-fetching-entity-subgraph-subtype]]
@@ -315,14 +310,6 @@ just using a parsed graph rather than a named graph.
315
310
The syntax also supports defining "key subgraphs". To specify a key subgraph, `.key` is added
316
311
to the end of the attribute name.
317
312
318
- .Parsing an entity key graph
319
- ====
320
- [source, java, indent=0]
321
- ----
322
- include::{example-dir-fetching}/GraphParsingTest.java[tags=fetching-strategies-dynamic-fetching-entity-graph-parsing-key-example-1]
323
- ----
324
- ====
325
-
326
313
.Parsing a map key graph
327
314
====
328
315
[source, java, indent=0]
0 commit comments