[hibernate-dev] Interceptor question
Hardy Ferentschik
hardy at hibernate.org
Sat May 12 04:01:12 EDT 2012
On May 11, 2012, at 20:22, Emmanuel Bernard <emmanuel at hibernate.org> wrote:
> The reason I did map manual indexing to apply default is that I sided with Sanne s reasoning and I went on the side of caution with the API. I'd love to get more practical feedback before deciding to either:
>
> - stay as it is
> - map indexing and purge to the interceptor - I don't think we can safely map purge all
+1
> - add two methods to the interceptor to treat index and purge explicitly
Another alternative would be to add new #index and #purge methods which for example take an additional Boolean flag for whether interceptors should be applied or not. We can then decide what the default behavior is for the existing index/purge operations.
--hardy
More information about the hibernate-dev
mailing list