Transaction

View: New views
3 Messages — Rating Filter:   Alert me  

Transaction

by Nico Robin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
how do i setup transaction in atleap ? the commit and rollback in database stuff
You see, i want to make something like this, when some error happen during the process, the application will commit to the previous state.
If my memory serves me well, in hibernate+spring scheme we do this by throwing an exception in the manager. Now, how do we do that in atleap ?

Could you help me with this ? Thanks

Re: Transaction

by Roman Puchkovskiy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Didn't you try to throw a RuntimeException from DAO/Manager?

Nico Robin writes:

> Hi,
> how do i setup transaction in atleap ? the commit and rollback in database
> stuff
> You see, i want to make something like this, when some error happen during
> the process, the application will commit to the previous state.
> If my memory serves me well, in hibernate+spring scheme we do this by
> throwing an exception in the manager. Now, how do we do that in atleap ?
>
> Could you help me with this ? Thanks
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Transaction

by Nico Robin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Got it ! It works :)



Didn't you try to throw a RuntimeException from DAO/Manager?

Nico Robin writes:
> Hi,