code: public int getVersion(final Object iPojo) {
  		final ODocument record = getRecordByUserObject(iPojo, false);
  
  		if (record == null)
  			throw new OObjectNotManagedException("The object " + iPojo + " is not managed by current database");
  
  		return record.getVersion();
  	}
docs: Returns the version number of the object. Version starts from 0 assigned on creation.
  
  @param iPojo
  User object