@Transactional(readOnly=true)
public void upper(){
for(int i=0;i<10;i++){
executorService.submit(()->{
lower();
});
}
}
public void lower(){
}
I have above code in Spring. Does transactional(readOnly = true) is propagted to the threads in executor service and any DB modification in lower method are not allowed? We are using Hibernate ORM and MySql database