I have function
@Transactional
public class TransactionalService {
@Transactional
public void DoSomeThing() {
//do something
}
@Transactional
public void LogInfo() {
//do something
}
}
So when DoSomeThing() got an error or a runtime exception, it got rollback. I want whenever the DoSomeThing() got rollback, the transaction will call the LogInfo() method.
I haven't have any idea what to use inside the annotation. Do anyone have idea how to do it.
Thank you.