Pavel Vlasov
Pavel Vlasov

Reputation: 4341

What is Grails' default propagation for transaction=false?

Setting transactional to false you disable automatic Spring managed transaction demarcation for every method in the service. (c)

Am I right it is equivalent to an explicit @Transactional(propagation=Propagation.SUPPORTS)? Or transaction=false cannot be expressed via @Transaction exactly?

Grails 2.2

Upvotes: 1

Views: 259

Answers (1)

Gregor Petrin
Gregor Petrin

Reputation: 2931

I think one difference is that if you are using Spring's @Transactional the methods will be proxied even if you use Propagation.SUPPORTS while a transactional=false declaration will prevent that.

Upvotes: 1

Related Questions