openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fernando (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-790) queryImpl.setUnique can't be used with read-only mode
Date Wed, 26 Nov 2008 18:18:44 GMT
queryImpl.setUnique can't be used with read-only mode
-----------------------------------------------------

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


for some reason, the setUnique method is making sure that it's not ReadOnly..
But I would assume that setUnique is only called for select queries.. so it should only be
for read-only queries.. they have nothing to do with update/delete right??


kernel/QueryImpl.java

    public void setUnique(boolean unique) {
        lock();
        try {
            assertOpen();
            assertNotReadOnly();
            _unique = (unique) ? Boolean.TRUE : Boolean.FALSE;
        } finally {
            unlock();
        }
    }

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


Mime
View raw message