Piotr Szerszeń
Piotr Szerszeń

Reputation: 95

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.

Upvotes: 9

Views: 8181

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402393

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

Upvotes: 21

Related Questions