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

Bug 348012

Summary: Allocation size and initial value of generators are not set to default
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JPAAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3 CC: neil.hauge
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nan Li CLA 2011-06-01 16:27:31 EDT
Build Identifier: I20110525-0800

1. In JPA Details, go to entity -> Primary Key Generation
2. Select Table/Sequence generator checkbox

You'll see the default values of Allocation size and Initial value are still <None> while the values of the rest of attributes are set to default, but you can set the default value by selecting it from the drop down list. 

Reproducible: Always
Comment 1 Neil Hauge CLA 2011-06-02 12:56:06 EDT
I can only reproduce this when not connected to a database.  If I have a connection defined and am connected, this seems to work OK for me.
Comment 2 Nan Li CLA 2011-06-02 17:34:00 EDT
That's interesting. I can reproduce it no matter whether the database is connected or not. 

Similar problem exists in

1) the default value of Length attribute of Column of Java Version mapping. Default(0) shows instead of the right default value Default(255).

2) the default value of Length attribute of Discriminator column under Java entity -> Inheritance. Default(0) shows instead of the right default value Default(31).

Orm shows the right default values with both cases.
Comment 3 Neil Hauge CLA 2011-07-01 16:25:16 EDT
Moving JPA specific bugs to new JPA component in bugzilla.