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

Bug 346205

Summary: Generating an Entity table "DIM_DIAGNOSIS" creates "DimDiagnosi", want "DimDiagnosis"
Product: [WebTools] Dali JPA Tools Reporter: Stuart Schmukler <sas1>
Component: JPAAssignee: Danny Ju <danny.ju>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
This is a JPA project with mysql scripts to create the DB. none

Description Stuart Schmukler CLA 2011-05-18 05:37:07 EDT
Build Identifier: 20100917-0705

Generating an Entity from the table "DIM_DIAGNOSIS" creates a class
"DimDiagnosi"  -- it should generate ""DimDiagnosis"

Here is a snippet of the generated annotation code:
...
@Entity
@Table(name="DIM_DIAGNOSIS")
public class DimDiagnosi 
...

It should generate


...
@Entity
@Table(name="DIM_DIAGNOSIS")
public class DimDiagnosis 
...

This is observed with an Oracle database.

Reproducible: Always

Steps to Reproduce:
0. Create JPA project
1. Create a database with a table named DIM_DIAGNOSIS
2. Setup the Data Explorer to connect to the database.
3. Open the JPA Perspective
4. Select the project, right click New-> Entities from Tables
5. Select the defaults for the wizard.

Attached is an Eclipse project duplicating the problem on a Mac OS X machine with MySql.
Comment 1 Stuart Schmukler CLA 2011-05-18 05:40:06 EDT
Created attachment 195943 [details]
This is a JPA project with mysql scripts to create the DB.
Comment 2 Neil Hauge CLA 2011-07-01 16:26:57 EDT
Moving JPA specific bugs to new JPA component in bugzilla.