IntelliJ 10.5 and MySQL, Hibernate mapping files show errors for schema
I'm using IntelliJ 10.5 with a Java/Spring/MySQL project that has multiple database schemas. I created a data source for each of the schemas, and associated the Hibernate facets to the appropriate data source. When creating the data sources, I used a slightly different URL for each depending on the schema, example: "jdbc:mysql://server:port/myschemaname"
This works in the sense that it connectes to the DB and sucks down all the tables, columns, etc. However, my mapping files still have lots of red in them. The table property is green, but the schema property is red, as are all the column references.
What am I doing wrong? Did I miss a step somewhere? Thanks!
-eagle
Please sign in to leave a comment.
Hello,
Please use version 10.5.1 (just released).
Check "Schemas & Tables" tab in a datasource properties dialog and
verify that the session factory is assigned to correct datasource in the
hibernate facet configuration (or via quickfix on a red reference).
BTW Does navigation work on a green table reference?
Regards,
--
Gregory Shrago
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop With Pleasure!"
On 6/30/11 6:34 PM, eagle63 wrote:
>
>
>
>
I just installed the latest version (10.5.1) but it made no difference. I've got a datasource defined for each schema, and I've mapped each hibernate facet to the appropriate data-source. Still, the columns and schema attributes in the mapping files are red. I CAN command-click on the Table reference and it will open the matching table in the data-source window, so that part is working. Looking forward to any suggestions.
-eagle
Bump. Anyone??
Please make sure that hibernate.cfg.xml if you use one is specified in
the facet settings. And that the mapping files references in it or
Spring configuration are correctly resolved and are navigatable.
If the problem persists I will need a sample project to reproduce the
problem.
On 7/3/11 11:34 PM, eagle63 wrote:
>
>
Regards,
--
Gregory Shrago
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop With Pleasure!"