On Wed, 24 Feb 2016 17:23:36 -0300, g kuczera <[email protected]> wrote:
Hi guys,
Hi!
It looks that the above module is badly designed. It does not matter that there is the CommitAfter annotation, if I call the methods which assume that everything is commited from within the commiting method. Am I right?
I'm sorry, I disagree. It's called Commit*After*, so I read that as the commit is done *after* the method call. It's not CommitWithin. :)
Also, I completely agree with what Kalle said. If the annotation, which is a convenience for simple scenarios, doesn't fit your scenario, don't use it. Instead, you can use the HibernateSessionManager.commit() directly.
-- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
