Hibernate - Cannot resolve table and column

Answered

Hibernate Configuration (posted in pastebin)

 

Intellij is highlighting the @Table and @Column in my class and I don't know why, although the queries are working perfectly fine (Create and Read so far).

I was getting the same highlight in  .createQuery("from Student")  but it disappeared, somehow.

 

 

0
1 comment
Avatar
Permanently deleted user

Resolved it, for anyone wondering how, I just created a "persistence unit", here are the links I used to do so

https://stackoverflow.com/questions/38100509/intellij-idea-2016-please-choose-persistence-unit

https://www.jetbrains.com/help/idea/2016.1/creating-persistence-units.html

https://www.jetbrains.com/help/idea/2016.1/mapping-by-database-schema.html

 

If by any chance you don't know where the Persistence window is:

View > Tool Windows > Persistence

0

Please sign in to leave a comment.