No hibernate mapping file, just annotations

My project doesn't use a "mapping.hbm.xml" as I simply use the various hibernate and ejb3 annotations. Is there any way to use the intellij hibernate features without having a mapping file? Or if not how do i get intellij to stop complaining about the syntax of my hbm files?

3 comments
Comment actions Permalink

Try adding EJB and possibly JPA Facets to your project.

0
Comment actions Permalink

I would make that "JPA and possibly Hibernate Facets".
(The simplified persistence is not part of the EJB facet, but implemented (and defined in the spec) as separate JPA part.)

0
Comment actions Permalink

Hello Barry,

Or if not how do i
get intellij to stop complaining about the syntax of my hbm files?


If nothing more helps, hibernate mapping file inspections can be turned off.

Alexander.


0

Please sign in to leave a comment.