looking at someone legacy code. If transaction is configured into a config file <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource" /> </bean>And one of the APIs has following codedef insertUser(user:User) = {
val user = identityService.newUser(user.id.toString)
identityService.saveUser(user)
}
identityService.newUser and identityService.saveUser both will run into separate transactions right? This is a code bug if that's true. If so what's the best way to combine multiple acticiti calls into a single transaction?