Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add manually publishing cascade events in implementation of DAOs instead of using EntityListeners #3342

Merged
merged 1 commit into from
Jan 12, 2017

Commits on Jan 12, 2017

  1. CHE-3342 Extend cascade removing engine to be able to perform any ope…

    …ration as cascade.
    
    Also contains following changes:
    - Fixes rethrowing original exception while cascade operation.
    - Add manually publishing cascade events in implementation of DAOs instead of using EntityListeners.
    - Add flushing of data by EntityManager#flush to produce consistency exception in right place.
    - Add CascadeEventLister that is able to throw any of Exception. If listener throws exception then all data changes should be canceled.
    - Add base events(PersistEvent, RemoveEvent, UpdateEvent). CascadeEventService throws only right exceptions for each use case. When thrown by listener exception should not be thrown by contract of this operation, then it will be wrapped into ServerException.
    Sergii Leschenko committed Jan 12, 2017
    Configuration menu
    Copy the full SHA
    359bd73 View commit details
    Browse the repository at this point in the history