-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename CarRoutingDataSource to TenantRoutingDataSource
- Loading branch information
akuksin
committed
Feb 5, 2020
1 parent
3b47352
commit b56c51d
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
...tion/datasource/CarRoutingDataSource.java → ...n/datasource/TenantRoutingDataSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package de.kuksin.multitenant.configuration.datasource; | ||
|
||
import de.kuksin.multitenant.configuration.web.ThreadTenantStorage; | ||
import org.apache.commons.lang3.ObjectUtils; | ||
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; | ||
|
||
|
||
public class CarRoutingDataSource extends AbstractRoutingDataSource { | ||
|
||
@Override | ||
protected Object determineCurrentLookupKey() { | ||
return ThreadTenantStorage.getTenantId(); | ||
} | ||
package de.kuksin.multitenant.configuration.datasource; | ||
|
||
import de.kuksin.multitenant.configuration.web.ThreadTenantStorage; | ||
import org.apache.commons.lang3.ObjectUtils; | ||
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; | ||
|
||
|
||
public class TenantRoutingDataSource extends AbstractRoutingDataSource { | ||
|
||
@Override | ||
protected Object determineCurrentLookupKey() { | ||
return ThreadTenantStorage.getTenantId(); | ||
} | ||
} |