Re: @CommitAfter and HibernateExceptions

2008-11-20 Thread Olle Hallin
Try to flush then Hibernate Session. It will make things happen in the database immediately. HTH, Olle 2008/11/21 Angelo Chen <[EMAIL PROTECTED]> > > good question, I like to know too. > > > César Lesc wrote: > > > > Hi, i am learning how to use the @CommitAfter annotation, but i want > > to cat

Re: @CommitAfter and HibernateExceptions

2008-11-20 Thread Angelo Chen
good question, I like to know too. César Lesc wrote: > > Hi, i am learning how to use the @CommitAfter annotation, but i want > to catch the exception when the database does not allows to delete a > record and thus to show the user a friendly messages like "X can't be > deleted, check if it is

@CommitAfter and HibernateExceptions

2008-11-20 Thread César Lesc
Hi, i am learning how to use the @CommitAfter annotation, but i want to catch the exception when the database does not allows to delete a record and thus to show the user a friendly messages like "X can't be deleted, check if it is not being in use in Z", or other messages based on the hibernateEx