Hi Zhe,

ZZZ Liu wrote:
Hi, all

I have a problem when I try to insert an object in a
data base table and then try to retrieve all records
from that table. I use the same persistence broker for
the above two operations.
I found that if I don't
commit the transaction after save, the retrieved
records won't include the new record just saved.

If you are using PB-api this should work. PersistenceBroker has same behaviour as a "pur Connection". If you start a PB-tx a connection was associated with the PB instance. Do you enable batch mode?


The ODMG-api is different, it collects all changes till commit is called. To write changes to DB while the tx is running, you have to call proprietary TransactionExt#flush() method.

regards,
Armin

I am
wondering whether anybody else ever had this problem
and whether this is a bug or is designed in this way.
But I know if I use JDBC directly, and if I insert a
record in a database table, even though it is not
commited, the record should be visible to current
session (connection).

I am using rc5. Any help or comments on this problem
would be much appreciated.

Thanks in advance.
Zhe

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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






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



Reply via email to