public int getVersion(final Object iPojo) {
    checkOpenness();
    final ODocument record = getRecordByUserObject(iPojo, false);
    if (record != null)
      return record.getVersion();

    return OObjectSerializerHelper.getObjectVersion(iPojo);
  }
public int getVersion(final Object iPojo) {
    checkOpenness();
    final ODocument record = getRecordByUserObject(iPojo, false);
    if (record != null)
      return record.getVersion();

    return OObjectSerializerHelper.getObjectVersion(iPojo);
  }
public int getVersion ( final Object iPojo ) { checkOpenness ( ) ; final ODocument record = getRecordByUserObject ( iPojo , false ) ; if ( record != null ) return record . getVersion ( ) ; return OObjectSerializerHelper . getObjectVersion ( iPojo ) ; }
Returns the version number of the object. Version starts from 0 assigned on creation.

@param iPojo User object
Returns the version number of the object . Version starts from 0 assigned on creation .