on 10/5/01 11:49 AM, "John McNally" <[EMAIL PROTECTED]> wrote:

> An example from ScarabModule.save():
> 
>                   // insert a row into the id_table.
>                   Criteria criteria = new Criteria(
>                       ScarabModulePeer.getTableMap()
>                       .getDatabaseMap().getName(), 5)
>                       .add(IDBroker.TABLE_NAME, getCode())
>                       .add(IDBroker.NEXT_ID, 1)
>                       .add(IDBroker.QUANTITY, 1);
>                   BasePeer.doInsert(criteria);
> 
> john mcnally

Exactly. That doesn't work (at least while I'm doing things in the testing
suite).

I get a NPE at BasePeer.doInsert() on the line where it is looking for the
id generator...

766:        IdGenerator keyGen = tableMap.getIdGenerator();

That returns null and then I get an NPE on this line.

            if (keyGen.isPriorToInsert())

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to