[jira] Created: (OFBIZ-3421) Allow data load to support explicit "null" values for entity update

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

[jira] Created: (OFBIZ-3421) Allow data load to support explicit "null" values for entity update

Nicolas Malin (Jira)
Allow data load to support explicit "null" values for entity update
-------------------------------------------------------------------

                 Key: OFBIZ-3421
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3421
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
            Reporter: Bob Morley
            Priority: Minor
             Fix For: SVN trunk


We required the ability to be able to have the data load update existing entities with a null value on existing records.  The reason for this was that we had a site in production where a product subscription resource was set to only allow 1 use.  We wanted to change this record to unlimited uses, so we wanted to have the entity change its value back to "null" in the database.  This change may be a bit of a hack; as it looks for "null" specifically in the data load file and then replaces that on the newly loaded entity with null to ensure backwards compatibility.

--
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] Updated: (OFBIZ-3421) Allow data load to support explicit "null" values for entity update

Nicolas Malin (Jira)

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

Bob Morley updated OFBIZ-3421:
------------------------------

    Attachment: OFBIZ-3421_AllowNullInDataLoad.patch

> Allow data load to support explicit "null" values for entity update
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-3421
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3421
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Bob Morley
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3421_AllowNullInDataLoad.patch
>
>
> We required the ability to be able to have the data load update existing entities with a null value on existing records.  The reason for this was that we had a site in production where a product subscription resource was set to only allow 1 use.  We wanted to change this record to unlimited uses, so we wanted to have the entity change its value back to "null" in the database.  This change may be a bit of a hack; as it looks for "null" specifically in the data load file and then replaces that on the newly loaded entity with null to ensure backwards compatibility.

--
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] Commented: (OFBIZ-3421) Allow data load to support explicit "null" values for entity update

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

    [ https://issues.apache.org/jira/browse/OFBIZ-3421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804099#action_12804099 ]

Jacques Le Roux commented on OFBIZ-3421:
----------------------------------------

Hi Bob,

IMO, this would be interesting with a property

Jacques

> Allow data load to support explicit "null" values for entity update
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-3421
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3421
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Bob Morley
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3421_AllowNullInDataLoad.patch
>
>
> We required the ability to be able to have the data load update existing entities with a null value on existing records.  The reason for this was that we had a site in production where a product subscription resource was set to only allow 1 use.  We wanted to change this record to unlimited uses, so we wanted to have the entity change its value back to "null" in the database.  This change may be a bit of a hack; as it looks for "null" specifically in the data load file and then replaces that on the newly loaded entity with null to ensure backwards compatibility.

--
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] Issue Comment Edited: (OFBIZ-3421) Allow data load to support explicit "null" values for entity update

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

    [ https://issues.apache.org/jira/browse/OFBIZ-3421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804099#action_12804099 ]

Jacques Le Roux edited comment on OFBIZ-3421 at 1/23/10 4:29 PM:
-----------------------------------------------------------------

Hi Bob,

IMO, this would be interesting with a property. I mean with a property to use it or not

Jacques

      was (Author: jacques.le.roux):
    Hi Bob,

IMO, this would be interesting with a property

Jacques
 

> Allow data load to support explicit "null" values for entity update
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-3421
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3421
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Bob Morley
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3421_AllowNullInDataLoad.patch
>
>
> We required the ability to be able to have the data load update existing entities with a null value on existing records.  The reason for this was that we had a site in production where a product subscription resource was set to only allow 1 use.  We wanted to change this record to unlimited uses, so we wanted to have the entity change its value back to "null" in the database.  This change may be a bit of a hack; as it looks for "null" specifically in the data load file and then replaces that on the newly loaded entity with null to ensure backwards compatibility.

--
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] Updated: (OFBIZ-3421) Allow data load to support explicit "null" values for entity update

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

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

Dimitri Unruh updated OFBIZ-3421:
---------------------------------

    Attachment: ofbiz.patch

Jacques,

maybe this patch could do this.

Dimitri Unruh

> Allow data load to support explicit "null" values for entity update
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-3421
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3421
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Bob Morley
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3421_AllowNullInDataLoad.patch, ofbiz.patch
>
>
> We required the ability to be able to have the data load update existing entities with a null value on existing records.  The reason for this was that we had a site in production where a product subscription resource was set to only allow 1 use.  We wanted to change this record to unlimited uses, so we wanted to have the entity change its value back to "null" in the database.  This change may be a bit of a hack; as it looks for "null" specifically in the data load file and then replaces that on the newly loaded entity with null to ensure backwards compatibility.

--
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] Updated: (OFBIZ-3421) Allow data load to support explicit "null" values for entity update

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

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

Dimitri Unruh updated OFBIZ-3421:
---------------------------------

    Attachment:     (was: ofbiz.patch)

> Allow data load to support explicit "null" values for entity update
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-3421
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3421
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Bob Morley
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: entity.patch, OFBIZ-3421_AllowNullInDataLoad.patch
>
>
> We required the ability to be able to have the data load update existing entities with a null value on existing records.  The reason for this was that we had a site in production where a product subscription resource was set to only allow 1 use.  We wanted to change this record to unlimited uses, so we wanted to have the entity change its value back to "null" in the database.  This change may be a bit of a hack; as it looks for "null" specifically in the data load file and then replaces that on the newly loaded entity with null to ensure backwards compatibility.

--
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] Updated: (OFBIZ-3421) Allow data load to support explicit "null" values for entity update

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

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

Dimitri Unruh updated OFBIZ-3421:
---------------------------------

    Attachment: entity.patch

Sorry,

I guess I had one "brain-bug" :)

It makes more sence with a dynamic configuration for a single data file.

So, in my opinion an attribute in the entity-engine-xml node with null-as-null-value="true" could do this.

Dimitri Unruh

> Allow data load to support explicit "null" values for entity update
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-3421
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3421
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Bob Morley
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: entity.patch, OFBIZ-3421_AllowNullInDataLoad.patch
>
>
> We required the ability to be able to have the data load update existing entities with a null value on existing records.  The reason for this was that we had a site in production where a product subscription resource was set to only allow 1 use.  We wanted to change this record to unlimited uses, so we wanted to have the entity change its value back to "null" in the database.  This change may be a bit of a hack; as it looks for "null" specifically in the data load file and then replaces that on the newly loaded entity with null to ensure backwards compatibility.

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