it seems to me, that code completion for JPA/Hibernate work fine only if I have source code of entities included in the project - NOK.
I have all JPA entites wrapped in the jar file, which is included to the project as maven dependency. Entities are generated from enterprise architect and generated source code can't be edited by hand. The source codes are bundled as maven dependency too, hence I can see, how entities are annotated (in read only mode).
I have enabled JPA Facet with persistence.xml. Color schema works fine too. The HQL Console works fine (but code completion does not work too).
After I added manually source codes of the entities to the project, code completion start to work fine.
How to configure IDE to use entities in the external jar?
IDEA. 9.0.2 #IU-95.66
Screens without source code and with source code.