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.
Summary: | Entity Classes from Database (unique) | ||
---|---|---|---|
Product: | javaee | Reporter: | javydreamercsw <javydreamercsw> |
Component: | Persistence | Assignee: | Dongmei Cao <dongmeic> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
javydreamercsw
2008-02-12 19:17:41 UTC
I believe the correct category for this would be J2EE > Persistence. Reassigning to them... *** This issue has been marked as a duplicate of 76357 *** Whoops, not a duplicate. The unique constraints are used for schema generation, that's why the wizard doesn't generate them. Since you already have the tables, it seems unlikely to want to generate them again from the entity classes. In NetBean 6.5, there is an additional step (last step and optional) to allow the user to specify if Attributes for Regenerating Tables should be generated. Unique constraints will be generated on @Table if the option is checked. http://hg.netbeans.org/main?cmd=changeset;node=ec8e1f01702d |