I would like to translate Hibernate exceptions to Spring exceptions (child classes of DataAccessException ). I thought it was sufficient to add a bean like below to the data