-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
I use spring-boot-starter-data-jpa to configure JPA automatically. I saw ClasspathScanningPersistenceUnitPostProcessor in the reference for spring-data-jpa and I want to use it.
However, I found that using it must be manually configured LocalContainerEntityManagerFactoryBean, and so the automatic configuration of spring-boot-starter-data-jpa will not take effect.
It would be best if the following code configuration worked.
//Kotlin language
@Bean
open fun persistenceUnitPostProcessor(): ClasspathScanningPersistenceUnitPostProcessor {
val persistenceUnitPostProcessor = ClasspathScanningPersistenceUnitPostProcessor("com.acme.domain")
persistenceUnitPostProcessor.setMappingFileNamePattern("**/*Mapping.xml")
return persistenceUnitPostProcessor
}
Sorry for my poor english.
Metadata
Metadata
Assignees
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply