Using IntelliJ 14.0 or 14.1 EAP, I cannot figure out how to change the association of a java file with a database.
I have different databases in my Database tool window. Each of those databases correspond to different versions of my software.
I have java code that contains SQL statements (pure JDBC, prepareStatement, ...).
If I Ctrl+Click a table name in one of those statements for example it always brings me to the same database in the Database tool window.
I am pretty sure that at some point IntelliJ asked me to associate that code with one of my databases but I cannot find how to change that association.
I have searched the Settings, all I can find is how to change the SQL dialect but not the database.