]
Andreas Pakulat updated HHH-2886:
---------------------------------
Issue Type: Improvement (was: Bug)
nonuniqueexception when loading the same object multiple times
--------------------------------------------------------------
Key: HHH-2886
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2886
Project: Hibernate3
Issue Type: Improvement
Affects Versions: 3.2.5
Environment: PostgreSQL 8.2
EHCache 1.2.4
Reporter: Andreas Pakulat
Priority: Critical
When using HQL or Criteria queries to find a specific object in the database it seems
that Hibernate completely bypasses its Session Cache and thus creates new persistent
objects each time the query is run. If the query however finds the same object multiple
times this results in non-unique-exceptions as soon as one of the objects is updated.
Hibernate should check its session cache when loading objects from the database and use
those already associated objects instead of creating new ones.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: