(spring, jpa): store error details, integrate with spring lifecycle