createCriteria « Session « JPA Q&A





1. Problems reindexing using session.createCriteria(...)    forum.hibernate.org

Hello all, I am sort of a Hibernate noob, having inherited a project and have been reading and able to follow along. I have also been reading the documentation, so please point me if this is an obvious thing. I notice that this code has a strange "bug" that occurs when doing a reindex. What I am seeing is that my ...

4. Using createCriteria in Read Only Session    forum.hibernate.org

Hi, I am using a session with flush mode NEVER (FLUSHMODE.NEVER) in other words , a read only session. I am creating an instance of a Class A and saving it in the session. But when i use createCriteria in that read only session , the returned list is always empty. I can open a transaction as i can operate only ...