openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Solodovnik <>
Subject OpenJPA and entities auto-scan
Date Fri, 22 Sep 2017 08:54:11 GMT

I'm trying to get rid of entity list in my persistence.xml and to use
springs package autoscan for this.
I have specified following configuration for entity manager factory:

<bean id="entityManagerFactory"
<property name="persistenceUnitName" value="openmeetings" />
<property name="packagesToScan" value="org.apache.openmeetings.db.entity" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter">
<property name="showSql" value="false" />
<property name="generateDdl" value="false" />

Entities seems to be found BUT named queries not :(
What I'm I doing wrong? Maybe I need to specify some additional
postprocessor to perform additional scan for named queries?

Thanks in advance for your answers :)

OpenJPA version 2.4.2 (latest)
Spring 4.3.10

Maxim aka solomax

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message