easybest / spring-data-mybatis

Simplifies the development of creating a MyBatis-based data access layer.
https://sdm.easybest.io
Apache License 2.0
237 stars 73 forks source link

Multi-tenant support #276

Closed easybest closed 1 year ago

easybest commented 1 year ago

example:

@Component
public class TestTenantStrategy implements TenantStrategy {

    @Override
    public Object getTenantId() {
        return 10001L;
    }

}
@Entity
@Tenant
public class Role {

}