try {
if (entity == null) {
this.log.warn("Uh oh, '" + this.persistentClass
+ "' object with id '" + id + "' not found...");
throw ExceptionUtil.crearCrudException("ERROR_SELECT_BD",
new ObjectRetrievalFailureException(
this.persistentClass, id));
}
} catch (final DataAccessException e) {
this.log.error("ERROR al obtener en BD:\n " + e);
throw ExceptionUtil.crearCrudException("ERROR_SELECT_BD", e);