@@ -32,7 +32,7 @@ import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
||||
import org.springframework.beans.factory.support.BeanDefinitionReaderUtils;
|
||||
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
||||
import org.springframework.core.Ordered;
|
||||
import org.springframework.data.jpa.util.BeanDefinitionUtils.EntityManagerFactoryBeanDefinition;
|
||||
import org.springframework.data.jpa.util.BeanDefinitionUtils.*;
|
||||
import org.springframework.orm.jpa.SharedEntityManagerCreator;
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,7 +27,6 @@ import javax.sql.DataSource;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@@ -123,6 +122,7 @@ public class EntityManagerBeanDefinitionRegistrarPostProcessorIntegrationTests {
|
||||
|
||||
@Autowired
|
||||
public EntityManagerInjectionTarget(@Qualifier("firstEmf") EntityManager firstEm, EntityManager primaryEm) {
|
||||
|
||||
this.firstEm = firstEm;
|
||||
this.primaryEm = primaryEm;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user