'cant resolve symbol' warnings for entities with Spring

I'm using the Spring Integration. I do not use a resosource.xml file. Instead I use the following setup:

<bean id="entityManagerFactory"
        <property name="jpaVendorAdapter">
            <bean >
                <property name="showSql" value="true" />
                <property name="generateDdl" value="false" />
                <property name="databasePlatform" value="${db.dialect}" />
        <property name="dataSource" ref="dataSource"/>
       <property name="packagesToScan" value="de.data.model"/>

The problem is that IntelliJ gives me 'can't resolve symbol' warnings for my entities:


final List list = em.createQuery("select p from VkprlistsEntity p").getResultList();

VkprlistsEntity exists and the code works but IntelliJ keeps complaining. Is there a way to make Intellij recognize my entities ?


Please sign in to leave a comment.