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
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