<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taedium</author_name>
  <author_url>https://blog.hatena.ne.jp/taedium/</author_url>
  <blog_title>taediumの日記</blog_title>
  <blog_url>https://taedium.hatenadiary.org/</blog_url>
  <categories>
    <anon>Java EE勉強会</anon>
    <anon>JPA</anon>
  </categories>
  <description>JPQLのHAVING句ですが、TopLinkでは以下のクエリが動きませんでした（Hibernateでは問題なく動きます）。 SELECT e.department.id, MAX(e.salary) FROM Employee e GROUP BY e.department.id HAVING MAX(e.salary) &gt; 1000 一見、まったく問題なさそうなのですが、HAVING句に MAX(e.salary) と指定しているのがいけないみたいです。 上のJPQLを実行すると、TopLinkはJPA仕様の4.7の最後にある次の文章を例外のメッセージに含めます。 The HAVING c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaedium.hatenadiary.org%2Fentry%2F20070219%2Fp1&quot; title=&quot; JPQLのHAVING句の変な仕様？ - taediumの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-02-19 00:00:00</published>
  <title> JPQLのHAVING句の変な仕様？</title>
  <type>rich</type>
  <url>https://taedium.hatenadiary.org/entry/20070219/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
