specify whether to always translate the exception `` true '' , or whether throw the raw exception when declared , i.e. when the originating method signature 's exception declarations allow for the raw exception to be thrown `` false '' . default is `` false '' . switch this flag to `` true '' in order to always translate applicable exceptions , independent from the originating method signature . note that the originating method does not have to declare the specific exception . any base class will do as well , even throws exception : as long as the originating method does explicitly declare compatible exceptions , the raw exception will be rethrown . if you would like to avoid throwing raw exceptions in any case , switch this flag to `` true '' . concode_field_sep ListableBeanFactory beanFactory concode_elem_sep boolean alwaysTranslate concode_elem_sep PersistenceExceptionTranslator persistenceExceptionTranslator concode_field_sep void setPersistenceExceptionTranslator concode_elem_sep void afterPropertiesSet concode_elem_sep Object invoke concode_elem_sep void setBeanFactory concode_elem_sep PersistenceExceptionTranslator detectPersistenceExceptionTranslators
void function ( boolean arg0 ) { this . alwaysTranslate = arg0 ; }