I'm using following Hibernate query and getting error. Product has one To Many relationship with tweeter so type for p.tweets is "List" .
Query:
@NamedQuery(
name="getAllProductsWithNoTweets",
query="From Product p where p.tweets is null"
)
Error is:
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'is'.