How to remove/hide unnecessary Session Factories (picked up from a dependent JAR file) from Persistent Tool Window?


After adding Hibernate Facet to an existing module, I found unnecessary Session Factories shown in the Persistent Tool Window. Half of the factories belong to the current module, another part is picked up from Spring configuration of a dependent JAR from the local Maven repository. The module has the dependency to this JAR, that is correct, but it doesn't mean that I want/need to pick up configuration from it.

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 "foreign" factories, because config file is located in the "external" JAR file.

Thanks for assistence,

Original message URL:


Please sign in to leave a comment.