Cosium / spring-data-jpa-entity-graph

Spring Data JPA extension allowing full dynamic usage of EntityGraph on repositories
MIT License
466 stars 51 forks source link

Compilation fails when entities have an array as a property #68

Closed austalakov closed 2 years ago

austalakov commented 2 years ago

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

Any workaround appreciated