Hi,
I have a problem with hibernate cache.
The best way to explain will be following example:
I have a query :
Code:
getCurrentSession().createQuery("from User").list().size()
which return 0.
In other thread and other session i adding new User, so database User table contains 1 user record, although when i one more time make a query:
Code:
getCurrentSession().createQuery("from User").list().size()
I got still 0 but i should got 1.
Is any way to clear query result, which was cached as I guess ?
By the way - If i call query only one time, then i got 1, but because I made this query earlier hibernate cached one and I got 0 again.
Thanks for any help.