Event « Transaction « JPA Q&A





1. .NET WinForms - How to listen to events for system LogOff, User Locked, Hibernate Started and System resumed?    stackoverflow.com

I want to listen to events in my windows forms .NET application for the following system wide events : Log Off Lock Windows Hibernate Started Sleep Started System Resumed Are these possible? Thanks

2. Interacting with the hibernate Session during event calls    stackoverflow.com

I want to write a history component that tracks changes to a particular object type and writes history rows based on the difference. Note this is not a general audit ...

3. Concurrent Creation Event    stackoverflow.com

I'm using JBoss 5.1.0 GA together with Hibernate and I'm now trying to enable the second level cache. I've added the following properties to my Hibernate configuration.

<property name="hibernate.cache.use_query_cache" value="true"/>
<property name="hibernate.cache.use_second_level_cache" ...

4. Transaction commit event handler in Grails    stackoverflow.com

Is there a way to get a notification in Grails once a transaction has been committed?

5. JPA: preventing overlapping calendar events by locking a table?    coderanch.com

Hi all, I'm writing a reservation system using JPA which allows the user to create and modify Reservation entities, which are basically your garden variety calendar events. Reservations occur either individually, or in relation to Recurrence entities; a single Recurrence 'contains' many Reservations via a one-to-many relationship. I have a screen in which the user (say, Bob) can create a Recurrence ...

6. Problem with session and transaction in events    forum.hibernate.org

Newbie Joined: Mon Nov 20, 2006 11:59 am Posts: 1 Hi, I have a problem with transaction and session. I need to copy some data from original table to archive table by event/listener with hibernate. When I want to do update in my update listener, I've got error: index out of boun exception that occurs in transaction.commit() line in my listener. ...

7. post-commit-insert events    forum.hibernate.org

public void afterTransactionCompletion(boolean success) throws HibernateException { EntityPersister persister = getPersister(); if ( success && isCachePutEnabled( persister, getSession() ) ) { .... } if (success) { postCommitInsert(); } else { ...

8. post commit event listeners and failed transactions.    forum.hibernate.org

Hibernate version: 3.2.2.ga Name and version of the database you are using: informix 7.31 Hi, My database tables include constraints that may stop inserts, modifies and deletes from being committed. I am registering PostCommitInsertEventListeners, PostCommitUpdateEventListeners and PostCommitDeleteEventListeners. When transactions fail to commit due to constraint violations, the post-commit event listener is still being notified of the database change, even though it ...

9. reentrant event listeners within a transaction    forum.hibernate.org

Hi, I am using Hibernate 3.2.2 ga. I've been struggling to get some work done in an event listener (specifically the pre-update event listener, but I think the problem is more general). I want to be able to make some db changes (i.e. update a few existing entities and add some new ones) within the event listener. Everything I've tried seems ...





10. After rollback, insert events fired but delete events not...    forum.hibernate.org

Hibernate version: 3.3.0 CR1 Name and version of the database you are using: MS SQL Server 2005 Mapping documents: (Irrelevant bits removed) Code: ...