protected int saveNew_getID(){
  if (get_ID() < 999999)   return get_ID();
  return 0;
}

protected int saveNew_getID ( ) { if ( get_ID ( ) < 999999 ) return get_ID ( ) ; return 0 ; }
get id for new record during save . you can overwrite this to explicitly set the id
