Interceptable javadocs?

View: New views
3 Messages — Rating Filter:   Alert me  

Interceptable javadocs?

by PabloS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

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.

Any tip would be appreciated.
Thanks in advance.
Pablo.

Re: Interceptable javadocs?

by Kalle Korhonen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Interceptable javadocs?

by PabloS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks a lot

2008/12/11 Kalle Korhonen <kalle.o.korhonen@...>
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