Hibernate can not be added as framework support

Answered

Hey

I posted this question yesterday only to understand now that my problem is probably completely different.

According to the Enabling Hibernate Support guide, I need to add hibernate support by selecting it in the Add Framework Support dialog, but the problem is that I don't have hibernate listed in the dialog.
There's a bunch of other options, but hibernate isn't one of them.

I guess that this is causing the problems of intellij not associating my entity annotated classes as hibernate entities.
Any idea what might be the reason for hibernate not being listed?

I'm using a licensed IDEA 15.0.2,

Thanks.

5 comments
Comment actions Permalink

You can add it to the modlue here:

http://i.imgur.com/XVhdZRd.png

Or from the project add framework:

http://i.imgur.com/JaGszSL.png

Double check that corresponding plug-in is enabled: http://www.jetbrains.com/idea/webhelp/enabling-and-disabling-plugins.html .

0
Comment actions Permalink

I don't have the hibernate option in that dialog as well...
However, is it possible that hibernate support is already added and thus not showing in the list?

Here's the project structure that I have:
structure.jpg

So is it added to my module?
If so, how come my entities aren't recognized?  not in the editor (in hql) nor in the hibernate console.

0
Comment actions Permalink

Yes, you already have it added.

Did you configure persistence unit? https://www.jetbrains.com/idea/help/creating-persistence-units.html .

0
Comment actions Permalink

Well, now it seems to be ok, that is the editor no longer complains about the entities.
But still a few things that aren't as they need to be:

  1. I can't seem to find the hibernate view, it's not under View > Tool Windows
  2. In the persistence.xml which was generated for me, under provider I have org.hibernate.ejb.HibernatePersistence but that can't be found, the ejb.HibernatePersistence class can not be found

Any idea why?
Thanks!
0
Comment actions Permalink

Please submit a ticket to support (https://intellij-support.jetbrains.com/hc/) and attach a sample project to reproduce the problem (with all the required dependency jars).

0

Please sign in to leave a comment.