Re: [Patsystem-users] strange pat.transaction doesn't but snapshot does
Brought to you by:
nthx
|
From: Tomasz N. <Tom...@ii...> - 2005-06-14 10:59:57
|
On the next beautiful day: Tue, 14 June, 2005, Chris wrote:
> Hi!
>
> I have following situation:
>
> /** @@pat.transaction */
> public void updateEntry(Entry entry, int id) {
> remove(id); // pat.transaction
> add(entry); // pat.transaction
> }
The similar examples are in the distro:
http://patsystem.sourceforge.net/api/org/nthx/pat/tests/RecursiveTransactionsTest.java.html
Test: 'testTransferMoney'
It should work the way you've described. Are you shure your test case
tests the right thing? ;)
T.
--
_i______'simplicity_is_the_key'__________tomasz_nazar
_ii____'i_am_concern_oriented'__________________iiuwr
_iii__'patsystem.sf.net'___________________linux_user
_Heaven_&_Fellows,_PPP______________________prevayler
|