SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-472
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Nguyen Hong Viet
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

DefaultHibernateEntityLifecycleInjector: Register hibernateEventListerner to be configured to allow registering for post commit listeners

Created: 23/Oct/07 02:19 AM   Updated: 29/Jun/08 02:05 PM
Component/s: Compass::Gps
Affects Version/s: 1.2 GA
Fix Version/s: 2.0 M1

Environment: Spring, Hibernate, Mysql, Tomcat, Compass(jdbc)


 Description  « Hide
To avoid "not processed by flush()" exception from hibernate when compass performs update index of entity which has uninitialized lazy loading component(s), the HibernateEventListener to be registered with postCommitUpdateEvent from Hibernate.

It is required to have injection of HibernateEventListener registration in DefaultHibernateEntityLifecycleInjector.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 24/Oct/07 02:18 PM
Added a flag to the constructor of DefaultHibernateEntityLifecycleInjector, which allows to register with post commit events. By default it does not.

Craig Baker added a comment - 25/Oct/07 01:24 AM
This tweak has resolved all the problems I've had with mirrored indexing.

Matan added a comment - 19/Feb/08 04:11 AM
is there a way to set this constructor flag in the spring xml files?

Shay Banon added a comment - 19/Feb/08 09:20 AM
You can set the injector on the Hibernate device.