What steps will reproduce the problem?
Add an @ElementCollection field to any existing model class (such as Product in the test samples).
What is the expected output?
The generated ProductEntityGraph can reference the @ElementCollection field
What happens instead?
The generated ProductEntityGraph is missing the @ElementCollection field
Environment:
Spring Data JPA version (not the Spring Boot one): 2.6.3
ORM with version: 5.5.3
spring-data-jpa-entity-graph version: 2.6.2
Link to an automated test demonstrating the problem:
Adding the below code to an existing model class such as Product
@ElementCollection
@MapKeyColumn(name="name")
@Column(name="value")
@CollectionTable(name="properties", joinColumns=@JoinColumn(name="product_id"))
Map<String, String> properties = new HashMap<>(); // maps from attribute name to value
Additional context
I am not sure if this is actually a problem or even possible to fix - mostly looking for quidance.
What steps will reproduce the problem? Add an
@ElementCollection
field to any existing model class (such asProduct
in the test samples).What is the expected output? The generated
ProductEntityGraph
can reference the@ElementCollection
fieldWhat happens instead? The generated
ProductEntityGraph
is missing the@ElementCollection
fieldEnvironment:
Link to an automated test demonstrating the problem: Adding the below code to an existing model class such as
Product
Additional context I am not sure if this is actually a problem or even possible to fix - mostly looking for quidance.