I'm learning about SQL and NoSQL databases in Spring Boot projects. And I have a question about transactions in databases. I know that when you use @Transactional at a method, all the queries from that method are taken as a single transaction and if there is no exception when that method is executed all the changes will be committed to database, otherwise the changes will be rolled back. What I want to know is if that thing is happen only if I use an SQL database? Do they happen in a NoSQL database as well. From what I know ACID is only for SQL databases. Thank you!
@Transactional
public void businessLogic() {
// create customer resource
// update customer resource
// other create/update
}