You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Fernando (JIRA)" <ji...@apache.org> on 2008/12/17 01:16:44 UTC

[jira] Created: (OPENJPA-829) QueryImpl missing a few assertNotReadOnly

QueryImpl missing a few assertNotReadOnly
-----------------------------------------

                 Key: OPENJPA-829
                 URL: https://issues.apache.org/jira/browse/OPENJPA-829
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 2.0.0
            Reporter: Fernando


Reviewing QueryImpl, I believe there are a few methods that are missing the assertNotReadOnly check:

setIgnoreChanges
setCandidateCollection
setResultMapping
setResultType
setRange





ps - I haven't been around enough so I don't know about the utility of the readOnly feature.  But some things seem off:

Query.java defines assertNotReadOnly
QueryContext.java defines set/isReadOnly
  yes no body calls QueryContext.set/isReadOnly
  so it looks like a feature that's not used...


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.