error: Unable to implement Repository method: H2BookEntityRepository.findAllByResourceState(BookState state). Parameter [io.micronaut.data.tck.entities.embedded.BookState state] is not compatible with property [io.micronaut.data.tck.entities.embedded.HouseState state] of entity: io.micronaut.data.tck.entities.embedded.ResourceEntity
Because entityMap used in RepositoryTypeElementVisitor uses classElement.getName() but when there is embedded class with generic type then the error happens so we need to make map key use type parameters as well.
Without this fix, compile error being thrown
Because
entityMap
used inRepositoryTypeElementVisitor
usesclassElement.getName()
but when there is embedded class with generic type then the error happens so we need to make map key use type parameters as well.