Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have a case where, i need to use a named query inside a Criteria. But it doesnt work!
Is it possible to use named Query inside criteria? If yes how?
你不能。
但是您可以使用namedQuery来自一个班级namedQuery的另一个班级。请参阅此 JIRA 问题。(主要是杰夫的评论)
namedQuery