Exclude classes in persistence.xml and Spring JPA configuration

What we are observing is if you use <exclude-unlisted-classes>true</exclude-unlisted-classes> in a persistence unit and then configure JPA in Spring like the markup shown below the persistence unit shows up fine in the IntelliJ Persistence Tool Window but the exlude-unlisted-classes is not honored and every class annotated with @Entity is visible under the persistence unit in the tool window. The same behavior exists in 12. I created an issue for it (http://youtrack.jetbrains.com/issue/IDEA-117612).

<bean id="..." >
        <property name="dataSource" ref="..." />
        <property name="jpaVendorAdapter">
            <bean >
                <property name="databasePlatform" value="org.hibernate.dialect.Oracle10gDialect" />
                <property name="showSql" value="..." />
        <property name="jpaPropertyMap">
                <!--                <entry key="hibernate.connection.autocommit" value="false"/>-->
                <entry key="hibernate.max_fetch_depth" value="..." />
                <entry key="hibernate.show_sql" value="..." />
        <property name="persistenceUnitName" value="..." />

Please sign in to leave a comment.