Hi Thomas,

thanks for the quick answer (as usual ;-)

> I had the same problem before, and as I needed a quick solution, I
> used string foreign keys instead (String foreign keys can be null). I
> will open a scarab issue on this problem.

my quick workaround:

I have overridden and copied "buildCriteria" of my table's peer and
inserted a condition, where necessary:

---snip---
if (obj.getFkSomeCol() > 0) {
    criteria.add(FK_SOME_COL, obj.getFkSomeCol());
}
---snip---

To be the above method being called, I had to override the method
"doInsert(MyObject obj, Connection con)", too, just copying the original
code.


Greets,

Daniel

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

Reply via email to