День добрый всем, не подскажите почему может не срабатывать
@EntityGraph Имеется
@NamedEntityGraph(
name = "RequestTask-entity-graph-with-no-document-data",
attributeNodes = {
@NamedAttributeNode("id"),
@NamedAttributeNode("Name"),
@NamedAttributeNode("stage"),
@NamedAttributeNode("platform"),
@NamedAttributeNode("parameters"),
@NamedAttributeNode("editTimestamp"),
@NamedAttributeNode("creationTimestamp"),
@NamedAttributeNode(value = "documents", subgraph = "Document-entity-graph-with-no-data"),
@NamedAttributeNode("history"),
},
subgraphs = {
@NamedSubgraph(
name = "Document-entity-graph-with-no-data",
attributeNodes = {
@NamedAttributeNode("fileName")
}
)
}
)
Далее я анатирую один из методов
@Repository@Repositorypublic interface RequestTaskRepository extends BaseRepository<RequestTask, Long> {
@EntityGraph(value = "RequestTask-entity-graph-with-no-document-data")
Iterable<RequestTask> findByIdNotNull();
}
и в результате получаю всё равно все поля в documents , почему так может происходить
база данных h2