This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 189473

Summary: Persistence Entity Class From Database Generation -Field Name Issue
Product: javaee Reporter: visumagic
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description visumagic 2010-08-13 07:56:33 UTC
Hi

When I'm creating entities from database, the one-one many-one mappings are getting generated with field names as the entity class names. In NB6.8 it was on db table column field. 

There should be some option available to the user to choose. Because the reflecting the table columns names in the entity filed names will be accurate way of treating the entity. Foreign keys should get appended with index counts.

Fyi ..

http://forums.netbeans.org/post-80727.html

-raghu
Comment 1 Sergey Petrov 2010-08-13 08:16:28 UTC
this option is added in latest dev builds
see 188550
also as of number of requests it may have sense to change default to old behavior, currently default one is new with option to switch to old.

*** This bug has been marked as a duplicate of bug 188550 ***
Comment 2 Sergey Petrov 2010-08-13 08:18:08 UTC
please add link to resolved issue to the topic