Please use the Apache issue tracking system for new NetBeans 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 QA Contact: issues <>
Priority: P3    
Version: 6.x   
Target Milestone: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Report:

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

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 ..

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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo