You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a large project in which I would like to apply logical deletes (due to financial integrity issues). I have added the @LogicalDelete annotation to the classes and collections that apply. I can see that the domain objects are altered in the database to include the deleted property. When I call delete() I can see the value in the database change to 1 indicating a successful logical delete.
However it appears that the Hibernate filter is not being used at all. I have turned on SQL logging and I do not see the deleted = 0 appended to any of the queries on my domain classes. I am using criteria queries in controller classes or service classes typically. I have added debugging and I can see that the logicalDeleteHibernateFilter is defined and enabled. I am at a loss to see why the Hibernate filter is not being applied when all else seems to be working.
Env. is Grails 2.3.8
Database is MySQL5
The text was updated successfully, but these errors were encountered:
I created a trivial project with a single Domain class and a single Controller with two actions. It shows that the logical delete occurs, but the subsequent list shows the deleted object.
I have a large project in which I would like to apply logical deletes (due to financial integrity issues). I have added the @LogicalDelete annotation to the classes and collections that apply. I can see that the domain objects are altered in the database to include the deleted property. When I call delete() I can see the value in the database change to 1 indicating a successful logical delete.
However it appears that the Hibernate filter is not being used at all. I have turned on SQL logging and I do not see the deleted = 0 appended to any of the queries on my domain classes. I am using criteria queries in controller classes or service classes typically. I have added debugging and I can see that the logicalDeleteHibernateFilter is defined and enabled. I am at a loss to see why the Hibernate filter is not being applied when all else seems to be working.
Env. is Grails 2.3.8
Database is MySQL5
The text was updated successfully, but these errors were encountered: