Issue with @Transactional annotation across multiple MongoDB repositories in Spring Data MongoDB

What I do is use the MongoTemplate associated with the Repository

    @Autowired
    private MongoTemplate template;

    EntityA entityA = new EntityA();
    EntityB entityB = new EntityB();
   
      // This is saved from YOUR perspective only, Isolaetd from others

     template.save(entityA); 
     tempalte.save(entityB)