Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

PreQueryListener.onApplicationEvent not being fired #4

Open
danlobo opened this issue Apr 3, 2016 · 3 comments
Open

PreQueryListener.onApplicationEvent not being fired #4

danlobo opened this issue Apr 3, 2016 · 3 comments

Comments

@danlobo
Copy link

danlobo commented Apr 3, 2016

The deleted property is working fine, but the listener event is not being fired before the queries, so a call to

Domain.list() or Domain.findAll()

will return all items, including the deleted ones. A

Domain.findAllByDeleted(false)

call will bring the correct results. (Breaking the plugin transparency, though).

Using hibernate4:5.0.0-RC1, grails:2.5.4 and gorm-logical-delete:1.1

@saboya
Copy link
Owner

saboya commented Apr 3, 2016

Thanks, I'm gonna have a look at it.

@saboya
Copy link
Owner

saboya commented Apr 5, 2016

Well, from the looks of it Hibernate uses its own session handler and also it's own domain base class, no wonder this doesn't work. I had no idea, this makes no sense to me... I'm gonna see if I can work around this somehow, but basically it shouldn't work at all :/

@mithom
Copy link

mithom commented May 6, 2016

@saboya ,I see this is a raher new plugin. But i'm wondering: are you still working on this project? i would love to use this plugin and I would even wait for it's completion if you are still working on this and thus fixing a huge bug like this one. Already great job so far, if this could be fixed it would be awesome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants