@Override
  public final AItemSpecifics<T, ID> process(
    final Map<String, Object> pReqVars,
      final AItemSpecifics<T, ID> pEntity,
        final IRequestData pRequestData) throws Exception {
    //Beige-ORM refresh:
    pEntity.setSpecifics(getSrvOrm().retrieveEntity(pReqVars,
      pEntity.getSpecifics()));
    if (pEntity.getSpecifics().getChooseableSpecificsType() != null) {
      pEntity.setLongValue2(pEntity.getSpecifics().getChooseableSpecificsType()
        .getItsId());
      pEntity.setStringValue2(pEntity.getSpecifics()
        .getChooseableSpecificsType().getItsName());
    }
    if (pEntity.getIsNew()) {
      //only complex ID
      getSrvOrm().insertEntity(pReqVars, pEntity);
    } else {
      getSrvOrm().updateEntity(pReqVars, pEntity);
    }
    return pEntity;
  }
@ Override public final AItemSpecifics < T , ID > process ( final Map < String , Object > pReqVars , final AItemSpecifics < T , ID > pEntity , final IRequestData pRequestData ) throws Exception { pEntity . setSpecifics ( getSrvOrm ( ) . retrieveEntity ( pReqVars , pEntity . getSpecifics ( ) ) ) ; if ( pEntity . getSpecifics ( ) . getChooseableSpecificsType ( ) != null ) { pEntity . setLongValue2 ( pEntity . getSpecifics ( ) . getChooseableSpecificsType ( ) . getItsId ( ) ) ; pEntity . setStringValue2 ( pEntity . getSpecifics ( ) . getChooseableSpecificsType ( ) . getItsName ( ) ) ; } if ( pEntity . getIsNew ( ) ) { getSrvOrm ( ) . insertEntity ( pReqVars , pEntity ) ; } else { getSrvOrm ( ) . updateEntity ( pReqVars , pEntity ) ; } return pEntity ; }
<p>Process entity request.</p>
@param pReqVars additional request scoped parameters
@param pRequestData Request Data
@param pEntity Entity to process
@return Entity processed for farther process or null
@throws Exception - an exception