JPA only executes first select statement in union?

后端 未结 1 1046
情话喂你
情话喂你 2020-12-12 01:58

I\'ve written a JPQL statement that unions multiple select statements, each of which selects a different string constant. A simplified version of the query would look somet

1条回答
  •  时光取名叫无心
    2020-12-12 02:43

    JPQL has no such concept as UNION. So consequently any "query" that has it is not JPQL and so ought to be rejected as invalid JPQL (which DataNucleus JPA certainly would do)

    0 讨论(0)
提交回复
热议问题