Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329275

Summary: Add CONVERT_UNSET_TO_NULL option
Product: [Modeling] EMF Reporter: pesco <pescosolido>
Component: TeneoAssignee: Martin Taal <mtaal>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:

Description pesco CLA 2010-11-02 12:42:11 EDT
Build Identifier: 

As the dual of HANDLE_UNSET_AS_NULL, we should have a CONVERT_UNSET_TO_NULL option with the following behavior:

- when an unset efeature is stored the database column will get a null value
- when a null is read from the database then the efeature is set to null


Reproducible: Always
Comment 1 Martin Taal CLA 2010-11-03 13:19:15 EDT
One question though:
- when a null is read from the database then the efeature is set to null

should the feature also be set to unset when reading a null from the database?

gr. Martin
Comment 2 Martin Taal CLA 2010-11-03 13:20:17 EDT
Hmm forget my question, this can be achieved by using the HANDLE_UNSET_AS_NULL option together with this new proposed option.

gr. Martin
Comment 3 Martin Taal CLA 2010-11-04 01:23:56 EDT
Solution committed to cvs, will be in next build
Comment 4 Martin Taal CLA 2010-11-04 02:35:22 EDT
Solution available in latest build, published 5 mins back