CriteriaBuilder with embedded properties #1345
Unanswered
alejandropg
asked this question in
Q&A
Replies: 2 comments 5 replies
-
I would expect it to work, Criteria API has a lot of different use-cases so this might be a missed one. |
Beta Was this translation helpful? Give feedback.
5 replies
-
Uffff I would like and thanks for your confidence, but I think this task is very far from my knowledge of Micronaut Data for now 😅🙈 I'm working go deeper in the code, but It will take me time 😔 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to use
CriteriaBuilder
to build criteria to find some entities by a property of the embedded object.An example:
I tried (well I tried several things but I suppose that the more "correct" is this one, and I know a can do it whit a simple compile-time query, but this is just a simpler example to show my problem):
With this approach I get the exception
IllegalStateException("Not supported operation!")
which is throw by the classio.micronaut.data.model.jpa.criteria.impl.AbstractPersistentPropertyPath<T>
in the method:I'm doing something wrong or just this feature of navigating to related entities is not supported?
Thanks a lot! 🙏
Beta Was this translation helpful? Give feedback.
All reactions