committed by
Mark Paluch
parent
99d1597756
commit
1fe9aaeefa
@@ -4,4 +4,4 @@ This project contains an example of how to set up Spring Data to work with two i
|
||||
|
||||
## Interesting points to look at
|
||||
|
||||
Two connect to two databases we need to manually configure a `DataSource`, `EntityManagerFactory` and `JpaTransactionManager`. This is done in `CustomerConfig` and `OrderConfig`. `DataInitializer` then simulates a Spring component interacting with those databases in separate methods. `Application.init()` orchestrates calls to those methods.
|
||||
To connect to two databases we need to manually configure a `DataSource`, `EntityManagerFactory` and `JpaTransactionManager`. This is done in `CustomerConfig` and `OrderConfig`. `DataInitializer` then simulates a Spring component interacting with those databases in separate methods. `Application.init()` orchestrates calls to those methods.
|
||||
|
||||
Reference in New Issue
Block a user