]
Gail Badner updated HHH-5531:
-----------------------------
Fix Version/s: (was: 3.6.1)
(was: 4.0.0.Alpha1)
4.0.0.Alpha2
3.6.next
Version update on read-only entity fails for joined subclasses
--------------------------------------------------------------
Key: HHH-5531
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5531
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.5, 3.6.0.Beta4
Environment: MySql 5.1.37-1 (ubuntu)
Reporter: Tobias Bergman
Assignee: Gail Badner
Fix For: 3.6.next, 4.0.0.Alpha2
Attachments: hibernate-inheritance-bug.zip
When adding an item to a collection for which the owner is fetched as READ_ONLY the
version update fails if the owner class has a parent class (with a join strategy), but
without parent it works.
The problem is that the AbstractEntityPersister.getTableUpdateNeeded() returns with
getTableHasColumns() (line 2748) when the owner is fetch as READ_ONLY. For a single table
this probably works by luck.
But what is the correct behavior? Should it be possible to update an READ_ONLY fetched
owner's collection?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: