spring-framework / org.springframework.orm.jpa.persistenceunit / SmartPersistenceUnitInfo

SmartPersistenceUnitInfo

interface SmartPersistenceUnitInfo : PersistenceUnitInfo

Extension of the standard JPA PersistenceUnitInfo interface, for advanced collaboration between Spring's org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean and PersistenceUnitManager implementations.

Author
Juergen Hoeller

Since
3.0.1

See Also
PersistenceUnitManagerorg.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean

Functions

getManagedPackages

abstract fun getManagedPackages(): MutableList<String>

Return a list of managed Java packages, to be introspected by the persistence provider. Typically found through scanning but not exposable through #getManagedClassNames().

setPersistenceProviderPackageName

abstract fun setPersistenceProviderPackageName(persistenceProviderPackageName: String): Unit

Set the persistence provider's own package name, for exclusion from class transformation.