You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "Anthony E. Carlos" <an...@digitalphenom.com> on 2003/08/04 22:47:19 UTC
newbie question
Hello all,
I'm using the PB API and can store a simple object to a table. Even
though table has a primary key constraint on the id column, if I try to
store a different object with the same id, there is no primary key
constraint violation. In fact, OJB _UPDATES_ the existing matching row
in the database, instead of trying to INSERT a new row (which would
trigger the integrity constraint). I'm using Oracle 8i.
My question, therefore, is:
Do I have to perform my own referential integrity checks when I use
OJB? Am I missing a basic idea behind OJB (like the lack of a need for
referential integrity)?
I've searched the mail archives and the online docs, but can't find the
answer to these simple questions.
Thanks,
Anthony Carlos
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org