I tried looking several SO questions and spring documents but still could not understand the significance of @Transactional(read-only = true)
.
can it be only used for read only transactions or it can be use for something like below which actually read and write databse
@Transactional(readOnly = true, propagation = Propagation.REQUIRED
, rollbackFor= {Exception.class})
public void doMultipleOperation(MyObj obj) throws Exception{
//call delete DAO method
//call insert DAO method
//call select DAO method
}
I find similar question like this and multiple others on SO but I am looking for answer in more layman term.