On 8 déc. 2010, at 12:06, Hardy Ferentschik wrote: > On Wed, 08 Dec 2010 11:40:57 +0100, Emmanuel Bernard <emman...@hibernate.org> > wrote: > >> limitExecutionTimeTo (or boundExecutionTimeTo) seems exactly what we are >> looking for. >> >> WDYT? > > I find it a little confusing to have setTimeout and limitFetchingTime (or be > it limitExecutionTimeTo). > Why not having another version of setTimeout - setTimeout(long timeout, > TimeUnit timeUnit, boolean allowPartialResults)?
setTimeOut raises a QueryTimeoutException, limitFetchingTime does not. That's a big enough difference to use a separate method. _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev