Spring + JPA LocalContainerEntityManagerFactoryBean. packagesToScan regex support? -


i want configure entitymanagerfactorybean property "packagestoscan" use regex (like spring context component-scan normally). similar behavior can array of packages.

there version use?

com.myproject.*.entity 

this entitymanagerfactorybean config:

<beans:bean id="myemf" class="org.springframework.orm.jpa.localcontainerentitymanagerfactorybean">         <beans:property name="datasource" ref="datasource" />         <beans:property name="packagestoscan">             <beans:array>                 <beans:value>com.myproject.web.users.entity</beans:value>             </beans:array>         </beans:property>         <beans:property name="jpavendoradapter">             <beans:bean class="org.springframework.orm.jpa.vendor.hibernatejpavendoradapter" />         </beans:property>         <beans:property name="jpaproperties">             <beans:props>                 <beans:prop key="hibernate.hbm2ddl.auto">update</beans:prop><!-- https://stackoverflow.com/questions/438146/hibernate-hbm2ddl-auto-possible-values-and-what-they-do  -->                 <beans:prop key="hibernate.dialect">org.hibernate.dialect.mysql5dialect</beans:prop>             </beans:props>         </beans:property>    </beans:bean> 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -