code: public final void updateOwner(final Map<String, Object> pAddParam,
      final WageLine pEntity) throws Exception {
      String query =
      "select sum(GROSSWAGE) as GROSSWAGE from " + WageLine.class
        .getSimpleName().toUpperCase() + " where ITSOWNER="
          + pEntity.getItsOwner().getItsId();
      Double total = getSrvDatabase().evalDoubleResult(query, "GROSSWAGE");
      if (total == null) {
        total = 0d;
      }
      pEntity.getItsOwner().setItsTotal(BigDecimal.valueOf(total).setScale(
        getSrvAccSettings().lazyGetAccSettings(pAddParam).getPricePrecision(),
          getSrvAccSettings().lazyGetAccSettings(pAddParam).getRoundingMode()));
      getSrvOrm().updateEntity(pAddParam, pEntity.getItsOwner());
    }
docs: <p>Insert immutable line into DB.</p>
  @param pAddParam additional param
  @param pEntity entity
  @throws Exception - an exception