I used column-based partitioning for multi-tenancy, but it didn't work. I tried lowering the version to 6.1.x final versions and it worked.
@Test
void contextLoads() {
currentTenantIdentifierResolver.setCurrentTenant("1");
Person person = new Person();
person.setId(1L);
personRepository.save(person);
currentTenantIdentifierResolver.setCurrentTenant("2");
Assertions.assertTrue(personRepository.findById(1L).isEmpty());
}
That's the problem now. I haven't had time to find out why |