[hibernate-dev] FlushMode.NEVER deprecated

2006-12-04 Thread andresgr
Hi. I can see in Hibernate 3.2 LockMode.NEVER is deprecated in favor of LockMode.MANUAL. Maybe this is a silly argument... but i think that FlushMode.NEVER has some semantic benefits. I mean, if i'm reading code and see session.setFlushMode(FlushMode.NEVER) i think oh, this is going to be

[hibernate-dev] Documentation bug?

2006-10-31 Thread andresgr
Hi. In Section 14.15. Tips Tricks: You can count the number of query results without actually returning them: ( (Integer) session.iterate(select count(*) from ).next() ).intValue() I don't find any session.iterate() method... Maybe it should read: ( (Integer) session.createQuery(select