« Return to Thread: Interceptable javadocs?

Re: Interceptable javadocs?

by Kalle Korhonen-2 :: Rate this Message:

Reply to Author | View in Thread

On Thu, Dec 11, 2008 at 4:49 AM, Pablo Saavedra <pablo.a.saavedra@...> wrote:
I'm trying to customize the behavior of an edit in one of my entities by implementing the Interceptable interface. However, I don't find any reference in the javadoc about the meaning of the method's return value (it's a boolean). I'm only interested on update events, so I want to implement onLoad and onInsert as NOOPs, but I don't know what to return.


Interceptable maps to Hibernate's Interceptor interface (http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Interceptor.html) but it's meant to be used for entities themselves. Generally, return false (as in no, your no-op did not modify the state).

Kalle

 « Return to Thread: Interceptable javadocs?