John McNally wrote:

> How are you calling your MapBuilder's?
>
> and
>
> > dbMap.setIdTable("ID_TABLE");
>
> should be in one of your MapBuilders.  It doesn't need repeated.

OK in my database, "timesheet", I have three tables DEntry, TEntry, and
an ID_TABLE.  I ran the JDBCOMGenerator to generate MapBuilders.  I just
put the line:

dbMap.setIdTable("ID_TABLE")

in my ID_TABLE MapBuilder.   What do you mean how am I calling my
MapBuilder?  Do you mean where does the "doBuild" method get called?  I
thought turbine did that automatically.  What's the correct way to call
my MapBuilder?

So my revised code to use the ID_TABLE in the timesheet database is:

33: DatabaseMap dbMap =
DBBroker.getInstance().getDatabaseMap("timesheet");
34: IDBroker idb = dbMap.getIDBroker();
35: int didInt = idb.getNextId("Dentry").intValue();

the IDBroker seems to be returning a null value, though:

java.lang.NullPointerException
        at
com.compassarts.modules.actions.TimeSheet.UpdateSheet.doPerform(UpdateSheet.java:35)

        at org.apache.turbine.modules.Action.perform(Action.java:77)

Dan Diephouse






------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to