Expert |
|
Joined: Tue May 13, 2008 3:42 pm Posts: 919 Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
|
You only want one SessionFactory, but you'll be creating many Session objects.
The Hibernate Session will cache changes and the entities you are using. If someone else updates the database underneath an active Session that is caching data, the Hibernate Session will get out of sync.
_________________ Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?" http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials
|
|