stringintellij-ideacreatequery

Intellij IDEA cant resolve symbol on string character


I have an strange problem with Intellij IDEA 14 ultimate

Here my createQuery() argument is in String , but IDE take error for it:

enter image description here

The from Book where isbn= :isbn line is in " ".


Solution

  • IntelliJ complains here because it can't find this table and row in datasources. You need to open your tab called Datasources

    enter image description here

    and add there your database. Then intelliJ will resolve names and this will be not highlighted as red.

    enter image description here

    Other alternative will be disable SQL language injection into string:

    enter image description here