There is only one difference between commit() and commitAllowingStateLoss(): the latter doesn’t throw an exception if state loss occurs. Other than that, they have identical behavior.
See my blog post about this topic for more information.
There is only one difference between commit() and commitAllowingStateLoss(): the latter doesn’t throw an exception if state loss occurs. Other than that, they have identical behavior.
See my blog post about this topic for more information.