I have an strange problem with Intellij IDEA 14 ultimate
Here my createQuery()
argument is in String
, but IDE take error for it:
The from Book where isbn= :isbn
line is in " "
.
IntelliJ complains here because it can't find this table and row in datasources.
You need to open your tab called Datasources
and add there your database. Then intelliJ will resolve names and this will be not highlighted as red.
Other alternative will be disable SQL language injection into string: