0

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?

4

1 回答 1

4

你不能。

但是您可以使用namedQuery来自一个班级namedQuery的另一个班级。请参阅此 JIRA 问题。(主要是杰夫的评论)

于 2013-07-31T13:34:50.437 回答