Code inspections fail build due to Unresolved reference

Hi, we enabled the Code Inspection in IntelliJ and that build now fails with lots of errors for a single file, but no other files. The errors are all about it not recognizing tables and columns ("Unable to resolve table 'form'), but the build itself should have no idea about the database, so not sure how it can determine whether or not it should know about these or not! In IntelliJ I have setup a Database Connection, which makes IntelliJ aware of the tables, but I cannot see how this should apply to TeamCity.

src/main/javaserver/domain/encounter
EncounterDao.java (14)
51: findLatestVitalsByEncounterIdQuery Unable to resolve table 'form'
51: findLatestVitalsByEncounterIdQuery Unable to resolve column 'type'
51: findLatestVitalsByEncounterIdQuery Unable to resolve column 'archived'
51: findLatestVitalsByEncounterIdQuery Unable to resolve column 'encounter_id'
52: findLatestVitalsByEncounterIdQuery Unable to resolve column 'id'
52: findLatestVitalsByEncounterIdQuery Unable to resolve column 'cts'
52: findLatestVitalsByEncounterIdQuery Unable to resolve column 'responses'
74: findEncountersByAttenderUserIdQuery Unable to resolve column 'id'
74: findEncountersByAttenderUserIdQuery Unable to resolve column 'end_ts'
74: findEncountersByAttenderUserIdQuery Unable to resolve column 'archived'
74: findEncountersByAttenderUserIdQuery Unable to resolve column 'user_id'

Here is some of the code in question (in IntelliJ). As can be seen, no squigglies!

Please sign in to leave a comment.