src/main/java/org/beigesoft/replicator/service/SrvEntitySyncHasId.java
@Override
  public final boolean sync(final Map<String, Object> pAddParam,
    final Object pEntity) throws Exception {
    Object entityPbDb = getSrvOrm().retrieveEntity(pAddParam, pEntity);
    return entityPbDb == null;
  }
@Override
  public final boolean sync(final Map<String, Object> pAddParam,
    final Object pEntity) throws Exception {
    Object entityPbDb = getSrvOrm().retrieveEntity(pAddParam, pEntity);
    return entityPbDb == null;
  }
@ Override public final boolean sync ( final Map < String , Object > pAddParam , final Object pEntity ) throws Exception { Object entityPbDb = getSrvOrm ( ) . retrieveEntity ( pAddParam , pEntity ) ; return entityPbDb == null ; }
<p>
Synchronize entity (that just read) with entity in database.
It just check if it's new.
</p>
@param pAddParam additional params
@param pEntity object
@return isNew if entity exist in database (need update)
@throws Exception - an exception
<p > Synchronize entity ( that just read ) with entity in database . It just check if it s new . < / p >