What steps will reproduce the problem?
Steps to reproduce the behavior:
Having an entity which has an array property, for example private byte[] image causes the spring-data-jpa-entity-graph-generator to fail to compile with the following error: com.sun.tools.javac.code.Type$ArrayType cannot be cast to javax.lang.model.type.DeclaredType
What is the expected output?
Successful compilation and XXXEntityGraph files generated
What happens instead?
Error above
Environment:
Spring Data JPA version (not the Spring Boot one): 2.6.6
ORM with version: Hibernate 5.6.7
spring-data-jpa-entity-graph version: 2.6.0
Link to an automated test demonstrating the problem:
Just adding this property to an existing entity makes the existing tests not compile
What steps will reproduce the problem? Steps to reproduce the behavior: Having an entity which has an array property, for example
private byte[] image
causes the spring-data-jpa-entity-graph-generator to fail to compile with the following error:com.sun.tools.javac.code.Type$ArrayType cannot be cast to javax.lang.model.type.DeclaredType
What is the expected output? Successful compilation and XXXEntityGraph files generated What happens instead? Error above Environment:
Link to an automated test demonstrating the problem: Just adding this property to an existing entity makes the existing tests not compile![image](https://user-images.githubusercontent.com/32936040/164472425-877a2fd7-0ff3-42a0-8124-05cf062e1e91.png)
Any workaround appreciated