Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348012 - Allocation size and initial value of generators are not set to default
Summary: Allocation size and initial value of generators are not set to default
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 16:27 EDT by Nan Li CLA
Modified: 2011-07-01 16:25 EDT (History)
1 user (show)

See Also:


Attachments

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