Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5531) Version
update fails for inherited entity classes

Anupam M (JIRA)

2010-09-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Version update fails for inherited entity classes
-------------------------------------------------

          Key: HHH-5531
          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5531
        Project: Hibernate Core
      Issue Type: Bug
      Components: core
  Affects Versions: 3.6.0.Beta4, 3.5.5
     Environment: MySql 5.1.37-1 (ubuntu)
       Reporter: Tobias Bergman
     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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.