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.
From a discussion with Andrei and Pavel: >However, I am able to create a class with the same name in a different > package from a same name table in a different schema. Re. creating a class with the name name in a different package, I still think the wizard should display a warning, not an error. Makes sense for e.g. a project with no persistence units, which will be used as a library in another project. The second project's persistence.xml could e.g. put the two packages in two different persistence units. ============== Some more info: It is an error to have these 2 classes in the same persistence unit since we accept the default name for the @Entity annotation.
I should clarify - this is using the Entity from DB wizard twice on 2 diff dbschemas, each with a table named MYTABLE.
OK, so I understand that we need to display an error. It is not a very common use case that the user would have 2 schemas with the same table and try to generate classes for both in the same module. Workaround it obvious. Possible to fix in 5.5, but IMHO P4.
Obsolete milestone, please reevaluate
Low priority bug.
NetBeans.org Migration: changing resolution from LATER to WONTFIX