Greg Charles wrote:In general, no, I don't think so.
In the context of a testing framework like JUnit or TestNG, then yes. Can you be more specific what you're trying to do?
when i invoke the persist method in hibernate, i want to execute some methods before and after the persist method.
tx for the help