[jira] Created: (OFBIZ-650) persistContentAndAssoc service has problems

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

[jira] Created: (OFBIZ-650) persistContentAndAssoc service has problems

Nicolas Malin (Jira)
persistContentAndAssoc service has problems
-------------------------------------------

                 Key: OFBIZ-650
                 URL: https://issues.apache.org/jira/browse/OFBIZ-650
             Project: Apache OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: content
    Affects Versions: SVN trunk
            Reporter: Al Byers
             Fix For: SVN trunk


persistContentAndAssoc service has problems. Most serious are called by the change in direction of the "subcontent" direction. See bug OFBIZ-649.

In the previous scheme, the ContentAssoc.contentId field was used for the child. That make the persistContentAndAssoc (which is a do-all service to persist Content, DataResource and ContentAssoc along with things like ContentPurpose, etc.) easier to program, as the Content.contentId and ContentAssoc.contentId fields overlapped. With ContentAssoc.contentIdTo being the "child" field, it is critical to not let ContentAssoc.contentId and Content.contentId get misused. The answer will be to use the ContentAssocView prefixes everywhere (ie. "ca").

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (OFBIZ-650) persistContentAndAssoc service has problems

Nicolas Malin (Jira)

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

Al Byers resolved OFBIZ-650.
----------------------------

    Resolution: Fixed

Made fix and committed at rev 499256

> persistContentAndAssoc service has problems
> -------------------------------------------
>
>                 Key: OFBIZ-650
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-650
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>            Reporter: Al Byers
>             Fix For: SVN trunk
>
>
> persistContentAndAssoc service has problems. Most serious are called by the change in direction of the "subcontent" direction. See bug OFBIZ-649.
> In the previous scheme, the ContentAssoc.contentId field was used for the child. That make the persistContentAndAssoc (which is a do-all service to persist Content, DataResource and ContentAssoc along with things like ContentPurpose, etc.) easier to program, as the Content.contentId and ContentAssoc.contentId fields overlapped. With ContentAssoc.contentIdTo being the "child" field, it is critical to not let ContentAssoc.contentId and Content.contentId get misused. The answer will be to use the ContentAssocView prefixes everywhere (ie. "ca").

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

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-650) persistContentAndAssoc service has problems

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacopo Cappellato closed OFBIZ-650.
-----------------------------------


> persistContentAndAssoc service has problems
> -------------------------------------------
>
>                 Key: OFBIZ-650
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-650
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: content
>    Affects Versions: SVN trunk
>            Reporter: Al Byers
>             Fix For: SVN trunk
>
>
> persistContentAndAssoc service has problems. Most serious are called by the change in direction of the "subcontent" direction. See bug OFBIZ-649.
> In the previous scheme, the ContentAssoc.contentId field was used for the child. That make the persistContentAndAssoc (which is a do-all service to persist Content, DataResource and ContentAssoc along with things like ContentPurpose, etc.) easier to program, as the Content.contentId and ContentAssoc.contentId fields overlapped. With ContentAssoc.contentIdTo being the "child" field, it is critical to not let ContentAssoc.contentId and Content.contentId get misused. The answer will be to use the ContentAssocView prefixes everywhere (ie. "ca").

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