Google News
logo
Java Spring Boot - Interview Questions
Can you give an example for ReadOnly as true in Transaction management?
Yes, example for ReadOnly as true in Transaction Management is :
 
Suppose you have a scenario where you have to read data from your database like if you have a STUDENT database and you have to read the student details such as studentID, and studentName.
 
 So in such scenarios, you will have to set read-only on the transaction.
Advertisement