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


7 comments

Hello Michael,

It should work out of the box.
SessionFactory from spring context should be shown in JavaEE / Structure
view.

-tt


0

In other words, to use this I must have a J2EE module in my project?

0

Hello Anders,

In other words, to use this I must have a J2EE module in my project?


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


0

You should have both Spring & Hibernate facets in your projects.

0

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


0

is there any documentation on how to use hibernate support, what it does etc.? until now, i've been using hibero.

0


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


0

Please sign in to leave a comment.