A Hibernate persistence context can hold one and only one reference of a given entity. The first level cache guarantees session-level repeatable reads. If your Hibernate Session has already loaded a given entity then any successive entity query (JPQL/HQL) is going to return the very same object reference (disregarding the current loaded database snapshot):
from dzone.com: latest front page http://www.dzone.com/links/r/hibernate_applicationlevel_repeatable_reads.html
from dzone.com: latest front page http://www.dzone.com/links/r/hibernate_applicationlevel_repeatable_reads.html
No comments:
Post a Comment