After adding Hibernate Facet to an existing module with Spring configuration, I found unexpected Session Factories shown in the Persistence view. Half of the factories belong to the current module (i.e. they are defined in the current module's Spring config XML), another part is picked up from the Spring configuration of a dependent JAR. Need to note, that session factories of the current module extend (i.e. use as a "parent") abstract factories from the dependent JAR. In addition, dependent JAR has multiple non-abstract factories definition as well. I think this causes IDEA to display both set of factories...
How I can add a filter to the searched Session Factory locations or remove not needed factories from the Persistent view? In my case IDEA doesn't allow me to remove "top-level" factories, because config file is located in the "external" JAR file. I reviewed "Spring Application Context" module's configuration, i.e. click "Edit" and make sure that dependent JAR is NOT selected. If it is not a bug, IMO the described behavior is confusing (I would allow to customize/filter displayed list of entities at least).
BTW, found old post that describes similar confguration (see post from Thibaut): http://devnet.jetbrains.com/message/5271516#5271516.
Thanks for assistence,