Is it okay to autowire multiple repositories (JPA interface) into another repository (class) as shown below
@Repository
public class repositoryClass {
@Autowired
private Repository1 repo1;
@Autowired
private Repository2 repo2;
}
Here repository 1 and 2 are Spring Data JpaRepository interfaces
The purpose of the repositoryClass is to fetch the sql queries from the repository1 and repository2 and then execute them using hibernate, because of that I am autowiring the repo1 and repo2 into the repositoryClass
