Hibernate Spring Integration
I see the new Hibernate-Spring Integration plugin, but I can't figure out
how to use it get IDEA to recognize my Spring-configured data source. I
already have Hibernate and Spring facets configured. Any hints?
Thanks,
Mike
Please sign in to leave a comment.
Hello Michael,
It should work out of the box.
SessionFactory from spring context should be shown in JavaEE / Structure
view.
-tt
In other words, to use this I must have a J2EE module in my project?
Hello Anders,
You can use a web module as well. However, hibernate/jpa (with or without
spring) should certainly be supported for regular modules.
At the momement some O/R mapping information is shown in J2EE Structure view.
There's already a ticket in JIRA to show this information for regular modules.
Please comment or vote:
http://www.jetbrains.net/jira/browse/IDEADEV-15044
-tt
You should have both Spring & Hibernate facets in your projects.
My problem seems to have been that the project with the Hibernate model was
a depdency on the module with the Spring configuration, not vice-versa.
This is done because other modules, for testing purposes, define the datasource
in different ways. So, I had to create a "fake" Spring facet to define the
datasource with a reference to the other module. Once I did that, IDEA recognized
the session factory.
--Mike
is there any documentation on how to use hibernate support, what it does etc.? until now, i've been using hibero.
Current version provides:
-hbm editing assistance (rename etc)
-ER diagram
-HQL validation (with some restrictions, for example IDEADEV-9347)
Functionality I'm missing most:
-editing of HQL embedded in XML/Java (although IntelliLang does help)
-execution/testing of JPA/HQL queries