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.
The Grab Structure feature doesn't include the table constraints. For example, if you grab the CUSTOMER_TBL found in the Pointbase Sample database, it will be missing the following CONSTRAINTS: CONSTRAINT FK_DISCOUNT_CODE FOREIGN KEY (DISCOUNT_CODE) REFERENCES DISCOUNT_CODE_TBL(DISCOUNT_CODE), CONSTRAINT FK_ZIP_CODE FOREIGN KEY (ZIP) REFERENCES MICRO_MARKETS_TBL(ZIP_CODE)
This is unfortunately as designed. The Database Explorer doesn't provide a means to create foreign keys, so foreign aren't read or generated by the Grab Structure action either. This looks like a high-priority enhancement. Affects for example EJB generation. When you generate EJBs from a database the relations between them are based on the foreign keys. If there are no foreign keys there won't be any CMR fields in the beans and no methods for obtaining the related beans.
Reassigned to new owner.
*** This bug has been marked as a duplicate of bug 69658 ***