Reputation: 4341
Setting
transactional
tofalse
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
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