How to read/write data in multiple datasource using single repository ?
e.g Suppose there are 2 customers i.e customer1 and customer2
There are different data source as customerDb1 and customerDb2
Now for customer1 should go in customerDb1 and for customer2 in customerDb2
but jpa repository will be same i.e customerRepository.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How to read/write data in multiple datasource using single repository ?
e.g Suppose there are 2 customers i.e customer1 and customer2
There are different data source as customerDb1 and customerDb2
Now for customer1 should go in customerDb1 and for customer2 in customerDb2
but jpa repository will be same i.e customerRepository.