openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (JIRA)" <j...@apache.org>
Subject [jira] Closed: (OPENJPA-790) queryImpl.setUnique can't be used with read-only mode
Date Mon, 01 Dec 2008 04:50:44 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Albert Lee closed OPENJPA-790.
------------------------------


> 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