Event « JPA « Spring Q&A





1. Spring & Hibernate EJB Events    stackoverflow.com

Is it possible to define a spring-managed EJB3 hibernate listener? I have this definition in my persistence.xml:

<properties> 
    <property name="hibernate.ejb.interceptor"
        value="my.class.HibernateAuditInterceptor" /> ...

3. Hibernate DefaultSaveOrUpdateEventListener checking for insert and update database events    stackoverflow.com

Using hibernate 3.3.2.ga and Spring 3.0.5.RELEASE. Have implemented something as described here.. with a different config as I;m using a Spring managed sessionFactory

<bean id="sessionFactoryPGAD" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="dataSource" ref="dataSourcePGAD"/>
.......
.......
<property ...

4. Hibernate and Spring Events    forum.springsource.org

How would I utilise Spring events in conjunction with hibernate? I need an event raised whenever hibernate interacts with the underlying persistence mechanism...Any Ideas?

5. save events in database using hibernate and onApplicationEvent    forum.springsource.org

Hi! I want to save last login date (and some other data) in onApplicationEvent. my code looks like this: Code: public void onApplicationEvent(ApplicationEvent event) { if (event instanceof InteractiveAuthenticationSuccessEvent) { InteractiveAuthenticationSuccessEvent ...

6. org.hibernate.HibernateException: while using Hibernate Event handlers    forum.springsource.org

org.hibernate.HibernateException: while using Hibernate Event handlers I wrote an event listener for updating common fields like createdBy, updatedDate etc on all the Domain Objects Code: public class UpdateUserDateListener implements PreInsertEventListener, PreUpdateEventListener ...

7. Logging of Events in Hibernate    forum.springsource.org

Hi, I was working with some common save listeners ( building a custom save as an example ) and Hibernate Logging suddenly became intense ( its not showing the sequel only, ...

8. Spring Hibernate Event Listner    forum.springsource.org

Spring Hibernate Event Listner Hi I'm using eventListeners and trying to catch events when adding record to table. Unfourtunatlly it doesnt work for me. My current configuration looks like this: Context ...