[
https://issues.apache.org/jira/browse/OPENJPA-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14205116#comment-14205116
]
Rick Curtis commented on OPENJPA-2541:
--------------------------------------
Can you give us more details as to what is going on? Perhaps some sort of a
unit test?
> 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)