You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Joef Huang (JIRA)" <ji...@apache.org> on 2014/11/08 02:13:33 UTC
[jira] [Created] (OPENJPA-2541) Undesired "update" statement fired
when loading related entities
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)