Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<bean class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
<property name="persistenceUnitManager" ref="pum"/>
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="databasePlatform" value="${database.dialect}" />
<property name="jpaPropertyMap">
<entry key="hibernate.multi_tenant_connection_provider" value-ref="multitenancyConnectionProvider"/>
<entry key="hibernate.tenant_identifier_resolver" value-ref="tenantResolver"/>
<entry key="hibernate.multiTenancy" value="DATABASE"/>

This comment has been minimized.

Copy link

commented Mar 7, 2017

how are we going to provide reference bean "pum" for multi-tenancy and how transaction manager will work with this approach ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.