Re: [Hibernate] Extending Session

2004-02-05 Thread Ugo Cei
Emmanuel wrote: It seems to me that it's not a common case at all Of course it's not that common. If it were, maybe someone else would have solved this problem by now :-). My use case is as follows: I need to add behavior to a Session's save, update, saveOrUpdate methods. As things stand, I can

Re: [Hibernate] Extending Session

2004-02-05 Thread Christian Bauer
On 05 Feb (14:48), Ugo Cei wrote: > public Serializable save(Object obj) { > // Do something before saving ... Thats the job of an Interceptor? -- Christian Bauer [EMAIL PROTECTED] http://www.hibernate.org/ --- The SF.Net email is spon

Re: [Hibernate] Kudos, Exception question, Validatable...

2004-02-05 Thread David Wood
> hmmmdon't know if it would be great to hold a reference to an object > in the exception...but maybe extend the message with information > (textual representation of the object) would probably be ok OK. So, add a toString() to the JDBCException's message. It's a good idea. I want to m

Re: [Hibernate] Kudos, Exception question, Validatable...

2004-02-05 Thread Max Rydahl Andersen
David Wood wrote: hmmmdon't know if it would be great to hold a reference to an object in the exception...but maybe extend the message with information (textual representation of the object) would probably be ok OK. So, add a toString() to the JDBCException's message. It's a