Even after associating datasource with Hibernate project, IntelliJ still shows error “cannot resolve table”


I followed the instructions here: https://www.jetbrains.com/help/idea/2016.1/associating-data-sources-with-session-factories-and-persistence-units.html to tie my Hibernate project to the MySQL DB. It shows it connected ot the datasource, and SHOW TABLES shows the correct table "student" but the error still shows:

//The "name" and "catalog" both show as not found
@Table( name = "student", catalog = "Hibernate")
public class Student implements Serializable
Comment actions Permalink

Please submit a ticket to support and attach a sample project that would reproduce the problem.

Comment actions Permalink

By re-adding the Datasource (with the same exact properties) the table name now is resolved, but my column names still show as unresolved. Any idea how to fix those?


Please sign in to leave a comment.