nhibernate « Cache « JPA Q&A

1. What is First and Second Level caching in Hibernate?    stackoverflow.com

in simple words, any one?

2. Sharing nHibernate and hibernate 2nd level cache    stackoverflow.com

Is it possible to share the 2nd level cache between a hibernate and nhibernate solution? I have an environment where there are servers running .net and servers running java who ...

3. Regarding hibernate caching    stackoverflow.com

Here is the scenario: I will select some records from my database, say 1000 records. Then I will do some operations on that result set, like insert one more record in it ...

4. Is an object in first level cache    stackoverflow.com

How can I find out if a certain HibernateProxy is in the first level cache? The code is roughly

for (HibernateObject obj : objects) {
    if (HibernateUtils.isHibernateProxyInCache(