Hi,
I'm a newbie in Hibernate.I'm hoping someone would answer..
In our application we are using Spring services and Hibernate as ORM.Now, the Spring injects a session factory to the DAO everything is great so faar..
The question is :- In my DAO if I access Hibernate Session as
Session session = SessionFactoryUtils.getSession(getSessionFactory(), false);
does this session be in the Transaction as the Spring? Can it see the Transaction Attributes set on it or its a completely or purely Hibernate Session and does not know about Spring..
Just to reiterate the question,If I have a query running under Spring transaction with Spring session (from SessionFactory) and I get the Hibernate Session as shown above and run another query using Hibernate Session will both the queries use the same Transaction and Transaction Attributes or different..
Thanks,
sa
|