Re: [hibernate-dev] [Search] PurgeAll & Sharding API

2011-08-02 Thread Sanne Grinovero
2011/8/2 Emmanuel Bernard : > Yes we should fix the example. Note that the JavaDoc covers this case. > >> id and idInString can be null. If null, all the directory providers >> containing entity types should be returned > > I'm not against a new method necessarily but I don't see the huge value (i

Re: [hibernate-dev] [Search] PurgeAll & Sharding API

2011-08-02 Thread Emmanuel Bernard
Yes we should fix the example. Note that the JavaDoc covers this case. > id and idInString can be null. If null, all the directory providers > containing entity types should be returned I'm not against a new method necessarily but I don't see the huge value (ie easier contract vs breaking exist

[hibernate-dev] [Search] PurgeAll & Sharding API

2011-08-01 Thread Sanne Grinovero
Hi, I just noticed that a PurgeAll request will ask the sharding strategy to know to which shard it should be applied, using the following method: getDirectoryProvidersForDeletion(Class entity, Serializable id, String idInString) { and passing in null for the second and third arguments. That's n