You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Gilberto C Andrade (JIRA)" <ji...@apache.org> on 2012/06/29 17:19:44 UTC

[jira] [Created] (CAY-1716) Cayenne runtime doesn't detect a missing tag

Gilberto C Andrade created CAY-1716:
---------------------------------------

             Summary: Cayenne runtime doesn't detect a missing <db-relationship-path> tag
                 Key: CAY-1716
                 URL: https://issues.apache.org/jira/browse/CAY-1716
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.1B1
         Environment: openSUSE 12.1
            Reporter: Gilberto C Andrade
            Priority: Minor
             Fix For: 3.1 (final)


Taken this discussion: http://cayenne.195.n3.nabble.com/Re-How-to-create-a-EJBLQuery-with-a-named-parameterized-query-stored-in-the-mapping-td4024338.html
For some reason, the modeler and the cayenne runtime didn't alert me about a xml problem: a missing <db-relationship-path> tag.
I've found the validation problem with NetBeans. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAY-1716) Cayenne runtime doesn't detect a missing tag

Posted by "Gilberto C Andrade (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407075#comment-13407075 ] 

Gilberto C Andrade commented on CAY-1716:
-----------------------------------------

Hi, Andrus!
Thanks for the explanation, but can you give us any link about this feature in the cayenne documentation?

Regards
                
> Cayenne runtime doesn't detect a missing <db-relationship-path> tag
> -------------------------------------------------------------------
>
>                 Key: CAY-1716
>                 URL: https://issues.apache.org/jira/browse/CAY-1716
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1B1
>         Environment: openSUSE 12.1
>            Reporter: Gilberto C Andrade
>            Priority: Minor
>         Attachments: teste.zip, validation.png
>
>
> Taken this discussion: http://cayenne.195.n3.nabble.com/Re-How-to-create-a-EJBLQuery-with-a-named-parameterized-query-stored-in-the-mapping-td4024338.html
> For some reason, the modeler and the cayenne runtime didn't alert me about a xml problem: a missing <db-relationship-path> tag.
> I've found the validation problem with NetBeans. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAY-1716) Cayenne runtime doesn't detect a missing tag

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407079#comment-13407079 ] 

Andrus Adamchik commented on CAY-1716:
--------------------------------------

It is really very simple - when you save a project in the Modeler, if the Modeler thinks there are problems, it shows a validation dialog after save (same as on screenshot). It is hard to miss it :) Also you can go to "Project > Validate Project" menu at any time to see if there are any ongoing errors 
                
> Cayenne runtime doesn't detect a missing <db-relationship-path> tag
> -------------------------------------------------------------------
>
>                 Key: CAY-1716
>                 URL: https://issues.apache.org/jira/browse/CAY-1716
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1B1
>         Environment: openSUSE 12.1
>            Reporter: Gilberto C Andrade
>            Priority: Minor
>         Attachments: teste.zip, validation.png
>
>
> Taken this discussion: http://cayenne.195.n3.nabble.com/Re-How-to-create-a-EJBLQuery-with-a-named-parameterized-query-stored-in-the-mapping-td4024338.html
> For some reason, the modeler and the cayenne runtime didn't alert me about a xml problem: a missing <db-relationship-path> tag.
> I've found the validation problem with NetBeans. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAY-1716) Cayenne runtime doesn't detect a missing tag

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1716.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 3.1 (final))

Actually the validation is present in the Modeler (see attached screenshot). So Cayenne does alert you about the problem. Runtime on the other hand does not attempt any validations and will happily load an incomplete project. This is sort of by design. This way you can run partial mappings during development, speeding up the cycle. 
                
> Cayenne runtime doesn't detect a missing <db-relationship-path> tag
> -------------------------------------------------------------------
>
>                 Key: CAY-1716
>                 URL: https://issues.apache.org/jira/browse/CAY-1716
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1B1
>         Environment: openSUSE 12.1
>            Reporter: Gilberto C Andrade
>            Priority: Minor
>         Attachments: teste.zip, validation.png
>
>
> Taken this discussion: http://cayenne.195.n3.nabble.com/Re-How-to-create-a-EJBLQuery-with-a-named-parameterized-query-stored-in-the-mapping-td4024338.html
> For some reason, the modeler and the cayenne runtime didn't alert me about a xml problem: a missing <db-relationship-path> tag.
> I've found the validation problem with NetBeans. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAY-1716) Cayenne runtime doesn't detect a missing tag

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik updated CAY-1716:
---------------------------------

    Attachment: validation.png
    
> Cayenne runtime doesn't detect a missing <db-relationship-path> tag
> -------------------------------------------------------------------
>
>                 Key: CAY-1716
>                 URL: https://issues.apache.org/jira/browse/CAY-1716
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1B1
>         Environment: openSUSE 12.1
>            Reporter: Gilberto C Andrade
>            Priority: Minor
>             Fix For: 3.1 (final)
>
>         Attachments: teste.zip, validation.png
>
>
> Taken this discussion: http://cayenne.195.n3.nabble.com/Re-How-to-create-a-EJBLQuery-with-a-named-parameterized-query-stored-in-the-mapping-td4024338.html
> For some reason, the modeler and the cayenne runtime didn't alert me about a xml problem: a missing <db-relationship-path> tag.
> I've found the validation problem with NetBeans. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAY-1716) Cayenne runtime doesn't detect a missing tag

Posted by "Gilberto C Andrade (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilberto C Andrade updated CAY-1716:
------------------------------------

    Attachment: teste.zip

I've created a maven project with the data model. I removed a <db-relationship-path> tag in the DataMap.map.xml, to verify just:
cd test
mvn sql:execute
mvn test
                
> Cayenne runtime doesn't detect a missing <db-relationship-path> tag
> -------------------------------------------------------------------
>
>                 Key: CAY-1716
>                 URL: https://issues.apache.org/jira/browse/CAY-1716
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1B1
>         Environment: openSUSE 12.1
>            Reporter: Gilberto C Andrade
>            Priority: Minor
>             Fix For: 3.1 (final)
>
>         Attachments: teste.zip
>
>
> Taken this discussion: http://cayenne.195.n3.nabble.com/Re-How-to-create-a-EJBLQuery-with-a-named-parameterized-query-stored-in-the-mapping-td4024338.html
> For some reason, the modeler and the cayenne runtime didn't alert me about a xml problem: a missing <db-relationship-path> tag.
> I've found the validation problem with NetBeans. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira