Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA 12.1.6 - hibernate doesn't resolve table or column name

I'm writing my first webapp on IDEA. I'm having a small problem with model classes. IDE can't resolve a names of tables, columns, attributes, ect. from a database and marks this as errors. I DO have a Data Source configured (even on IDE scope). Do anybody know how to bypass that (while having a working project of course :))? As in title, I'm using an IntelliJ IDEA 12.1.6 version.

like image 908
Piotr Szerszeń Avatar asked Dec 16 '13 09:12

Piotr Szerszeń


1 Answers

Please check the documentation:

In the Data Sources Mapping section, specify the data source for each Hibernate session factory. To do that, select the desired entry in the Session Factory column, double click the corresponding Data Source, and select one from the list of data sources already configured in your workspace.

assign data sources

assign dialog

like image 56
CrazyCoder Avatar answered Oct 26 '22 22:10

CrazyCoder