次の Hibernate クエリを使用していますが、エラーが発生しています。Product は tweeter と 1 対多の関係にあるため、p.tweets のタイプは "List" です。
クエリ:
@NamedQuery(
name="getAllProductsWithNoTweets",
query="From Product p where p.tweets is null"
)
エラーは次のとおりです。
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'is'.