Interface « Interceptor « JPA Q&A





1. Interceptor Interface    forum.hibernate.org

I've been playing around with the Interceptor interface, and first off just let me say this - nice job. I see a lot of poorly designed interfaces and this one is sweet. Enough with the buttering up. Here is my question. Let's say that during the onLoad method I pulled some needed data from the "state" array, and then replaced that ...

2. Difference between Lifecycle and Interceptor Interfaces    forum.hibernate.org

Hi, A persistent class Product extends AbstractVersionedEntity which implements Lifecycle. I'd expect the methods onSave() and onUpdate() to be hit whenever the application saves or updates an instance, that's why I try to set an "edited" timestamp value among other values there. Unfortunately, the methods never get executed. A short test program tells me: Code: ...

3. new Interceptor interface    forum.hibernate.org

4. Interceptor Interface    forum.hibernate.org

Hibernate Interceptor Issue Hello forum members, Please forgive me for any errors as this is my first posting. I cannot seem to get the previous state of entities associated with a dirty entity. When I drill down to the set of associated objects through the currentState and previousState arrays and compare property values, the values are always the same even though ...

5. interceptor for interface mappings    forum.hibernate.org

Newbie Joined: Wed May 28, 2008 4:12 pm Posts: 1 Hi, In an attempt to create a reusable hibernate project within eclipse on a common database schema used across multiple development projects, I wanted to create hibernate mappings for interfaces with default implementations for those interfaces provided within that project. If a subsequent projects required a different implementation of the interface, ...