Joef Huang created OPENJPA-2541:
-----------------------------------

             Summary: Undesired "update" statement fired when loading related 
entities
                 Key: OPENJPA-2541
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2541
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 2.0.0
         Environment: Windows, AIX
            Reporter: Joef Huang


In orm.xml, we have an entity which refers to another entity in an 
"one-to-many" relationship. 

When eager loading the main entity, we saw JPA fired "update" statements 
against the target entity table, which it shouldn't. 

After switching to lazy loading with the target entity set to be read-only, 
this problem no longer appears. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to