You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Robert Zeigler (JIRA)" <ji...@apache.org> on 2008/12/24 07:51:11 UTC

[jira] Created: (CAY-1159) Switching between adapter templates in sql template queries sometimes results in overwriting the template

Switching between adapter templates in sql template queries sometimes results in overwriting the template
---------------------------------------------------------------------------------------------------------

                 Key: CAY-1159
                 URL: https://issues.apache.org/cayenne/browse/CAY-1159
             Project: Cayenne
          Issue Type: Bug
          Components: CayenneModeler GUI
    Affects Versions: 3.0M5
         Environment: os x 10.5, java 1.5
            Reporter: Robert Zeigler


When working with sql template queries in the modeler, I have noticed that sometimes, when I switch from, eg, the default template to another template (eg: Hypersonic DB) or vice versa, the text area box is not properly updated, and so the value from the switched from template is stored into the switched to template.

For example, this evening, I was working with a query with the default and hsqldb templates.  I had been working on the hsqldb template, and switched to the default template, but the text in the default template was now the same as the text in the hsqldb template. This doesn't always happen, but it happens often enough to be annoying.  I haven't had time (and won't until after the new year) to figure out under exactly which circumstances this occurs; I will track it down when I have a bit more time.

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


[jira] Commented: (CAY-1159) Switching between adapter templates in sql template queries sometimes results in overwriting the template

Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/cayenne/browse/CAY-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228#action_13228 ] 

Andrey Razumovsky commented on CAY-1159:
----------------------------------------

I've been unable to reproduce the issue, no matter how hard I tried, seems these are Mac jokes again. Looking at the code, I can only guess that Apple Java is incorrect in handling "valueIsAdjusting". Could you try to remove line 125 in SQLTemplateScriptsTab and try again?

> Switching between adapter templates in sql template queries sometimes results in overwriting the template
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAY-1159
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1159
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0M5
>         Environment: os x 10.5, java 1.5
>            Reporter: Robert Zeigler
>
> When working with sql template queries in the modeler, I have noticed that sometimes, when I switch from, eg, the default template to another template (eg: Hypersonic DB) or vice versa, the text area box is not properly updated, and so the value from the switched from template is stored into the switched to template.
> For example, this evening, I was working with a query with the default and hsqldb templates.  I had been working on the hsqldb template, and switched to the default template, but the text in the default template was now the same as the text in the hsqldb template. This doesn't always happen, but it happens often enough to be annoying.  I haven't had time (and won't until after the new year) to figure out under exactly which circumstances this occurs; I will track it down when I have a bit more time.

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