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

Answered

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:

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

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

0
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?

0

Please sign in to leave a comment.