I read that services are used for updates across multiple domain classes. However, I have command classes, and I would like to know whether putting the logic that makes transactional updates into a command class has a significant downside (or breaks the Grails paradigm). Something like:
class ObjectOneCommand {
...
def save() {
objectOneInstance.save()
objectTwoInstance.save()
}
}
And in a controller
ObjectOne.withTransaction { transactionStatus ->
objectOneCommand.save()
}