Closed radovanradic closed 1 month ago
Having Author and Book mapping entities, and relation in Author
Author
Book
@OneToMany(cascade = CascadeType.ALL, mappedBy = "author") private Set<Book> books = new HashSet<>();
Defining such query on Author repository should work.
@Join(value = "books", type = Join.Type.LEFT_FETCH) CursoredPage<Author> findByBooksTotalPages(int totalPages, CursoredPageable pageable);
Compile error is thrown telling it is Unable to implement Repository method: with the error Property is not joined at path: books
Unable to implement Repository method:
Property is not joined at path: books
This is regression from https://github.com/micronaut-projects/micronaut-data/issues/1882 that was release in micronaut-data 3.9.0 and that code change should be reverted.
Explained in expected behavior section.
Any
No response
micronaut-data since 3.9.0
Expected Behavior
Having
Author
andBook
mapping entities, and relation inAuthor
Defining such query on
Author
repository should work.Actual Behaviour
Compile error is thrown telling it is
Unable to implement Repository method:
with the errorProperty is not joined at path: books
This is regression from https://github.com/micronaut-projects/micronaut-data/issues/1882 that was release in micronaut-data 3.9.0 and that code change should be reverted.
Steps To Reproduce
Explained in expected behavior section.
Environment Information
Any
Example Application
No response
Version
micronaut-data since 3.9.0