From: "Hristo Kosev" <[EMAIL PROTECTED]>
> Here's my schema dtd definition at the top of my
> schema xml.
> <!DOCTYPE app-data SYSTEM
> "http://jakarta.apache.org/turbine/dtd/database.dtd";>

Can you validate the file using an xml parser?

> 
> And I get the addDetails() and getDetailss() in my
> BaseRequest file. I confirm that.

Good - that confirms the foreign key is set up correctly.

> I forgot to tell you that I have set up the idMethod
> for the REQUEST table to "none"(although the
> autoIncrement of the ID is set to "true") and it's my
> mistake, sorry. But I did it because when I set the
> idMethod to "autoincrement" when I save the Request a
> new row is inserted properly into the table REQUEST
> but I get a NullPointerException and no insert is done
> to the Details table. When I set the idMethod to
> "done" two inserts are done but I said previously 
> with NULL foreign key(DETAILS -> REQUEST).

With idMethod set to "none" I doubt if you will see things
working as I described them.  You need an idMethod
of "autoincrement" ("idbroker" probably works as well).

You need to focus on and eliminate the NullPointerException.
Hopefully the xml parser will point out something wrong in
your schema when you validate it.

Scott


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

Reply via email to