spring-framework / org.springframework.orm.jpa.support / SharedEntityManagerBean / setEntityManagerInterface

setEntityManagerInterface

open fun setEntityManagerInterface(entityManagerInterface: Class<out EntityManager>): Unit

Specify the EntityManager interface to expose.

Default is the EntityManager interface as defined by the EntityManagerFactoryInfo, if available. Else, the standard javax.persistence.EntityManager interface will be used.

See Also
org.springframework.orm.jpa.EntityManagerFactoryInfo#getEntityManagerInterface()javax.persistence.EntityManager