Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329275 - Add CONVERT_UNSET_TO_NULL option
Summary: Add CONVERT_UNSET_TO_NULL option
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Server 2003
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 12:42 EDT by pesco CLA
Modified: 2010-11-04 02:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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