* fixed a spelling error in javadoc.

* fixed official id support in saveNew_getID.
This commit is contained in:
Heng Sin Low 2010-07-27 19:25:52 +08:00
parent 230fcd84f7
commit 3e5bc7778f
1 changed files with 2 additions and 2 deletions

View File

@ -701,7 +701,7 @@ public abstract class PO
} // setValueE } // setValueE
/** /**
* Set Value if updteable and correct class. * Set Value if updateable and correct class.
* (and to NULL if not mandatory) * (and to NULL if not mandatory)
* @param index index * @param index index
* @param value value * @param value value
@ -2775,7 +2775,7 @@ public abstract class PO
*/ */
protected int saveNew_getID() protected int saveNew_getID()
{ {
if (get_ID() < 999999) // 2Pack assigns official ID's when importing if (get_ID() > 0 && get_ID() < 999999) // 2Pack assigns official ID's when importing
return get_ID(); return get_ID();
return 0; return 0;
} // saveNew_getID } // saveNew_getID