Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350668 - Discriminator Column is nullable
Summary: Discriminator Column is nullable
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P2 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-29 04:43 EDT by Bernard Missing name CLA
Modified: 2022-06-09 10:25 EDT (History)
1 user (show)

See Also:


Attachments
testcase (15.57 KB, application/octet-stream)
2011-06-29 04:44 EDT, Bernard Missing name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Missing name CLA 2011-06-29 04:43:06 EDT
Build Identifier: 2.3.0.v20110604-r9504

During some transition scenario that I cannot reproduce, I found that EclipseLink creates the default discriminator column "DTYPE" as nullable.

I cannot imagine that there is a case where an entity would be persisted that contains null in this value.

In my case, it prevented discovery of the scenario in which one such entity with null in "DTYPE" was created - it was creating problems later.

The attached testcase is a NetBeans project that needs some configuration of its libraries.



Reproducible: Always

Steps to Reproduce:
1. Extract the attached testcase and open in NetBeans
2. Configure persistence.xml
3. Configure libraries
4. Run JUnit test - should create table
5. Inspect table layout - column "DTYPE" should NOT be nullable
Comment 1 Bernard Missing name CLA 2011-06-29 04:44:49 EDT
Created attachment 198800 [details]
testcase
Comment 2 Tom Ware CLA 2011-07-08 11:09:49 EDT
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:25:20 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink