Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346205 - Generating an Entity table "DIM_DIAGNOSIS" creates "DimDiagnosi", want "DimDiagnosis"
Summary: Generating an Entity table "DIM_DIAGNOSIS" creates "DimDiagnosi", want "DimDi...
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Danny Ju CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 05:37 EDT by Stuart Schmukler CLA
Modified: 2011-07-01 16:26 EDT (History)
1 user (show)

See Also:


Attachments
This is a JPA project with mysql scripts to create the DB. (4.83 KB, application/zip)
2011-05-18 05:40 EDT, Stuart Schmukler CLA
no flags Details

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