[jira] Created: (OFBIZ-563) Entity Model Reader needs reserved word check

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-563) Entity Model Reader needs reserved word check

Nicolas Malin (Jira)
Entity Model Reader needs reserved word check
---------------------------------------------

                 Key: OFBIZ-563
                 URL: http://issues.apache.org/jira/browse/OFBIZ-563
             Project: OFBiz (The Open for Business Project)
          Issue Type: Improvement
          Components: framework
            Reporter: Chris Howe
            Priority: Minor


Entity Engine needs to check if alias for member enttity is a reserved word.  If someone could point me in the direction of a comprehensive list for most databases, I would be happy to look into implementing this. Would this be better to simply throw an error or to append the reserved word with nonsensical letters?  Is there actual usage (or could there be actual usage) of the member entity's defined alias outside of the scope of the entity engine?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-563) Entity Model Reader needs reserved word check

Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-563?page=comments#action_12461064 ]
           
David E. Jones commented on OFBIZ-563:
--------------------------------------

The current entity checking code, including the reserved word list and checking it, is in the ModelEntityChecker.java file. I don't think it does a reserved word check on the view-entity -> member-entity -> entity-alias attribute right now, so that would be great to add.

> Entity Model Reader needs reserved word check
> ---------------------------------------------
>
>                 Key: OFBIZ-563
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-563
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Chris Howe
>            Priority: Minor
>
> Entity Engine needs to check if alias for member enttity is a reserved word.  If someone could point me in the direction of a comprehensive list for most databases, I would be happy to look into implementing this. Would this be better to simply throw an error or to append the reserved word with nonsensical letters?  Is there actual usage (or could there be actual usage) of the member entity's defined alias outside of the scope of the entity engine?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira