@Transactional public RevisionPetition updateRevisionPetition(RevisionPetition objection){
  if (objection.getId() == null)   objection=persist(objection);
 else   objection=update(objection);
  return objection;
}

@ Transactional public RevisionPetition updateRevisionPetition ( RevisionPetition objection ) { if ( objection . getId ( ) == null ) objection = persist ( objection ) ; else objection = update ( objection ) ; return objection ; }
api to update revision petition .
