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 does not generate @GeneratedValue | ||
---|---|---|---|
Product: | javaee | Reporter: | Matthew Bohm <mbohm> |
Component: | Persistence | Assignee: | Martin Adamek <madamek> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Matthew Bohm
2008-03-12 09:22:33 UTC
Sorry, there is no way to fix this for 6.1. *** This issue has been marked as a duplicate of 76357 *** I do not understand why this would be a difficult fix. Can't the IDE invoke java.sqlDatabaseMetaData.getColumns and look at the IS_AUTOINCREMENT value? Not for 6.1 for a couple of reasons: - IS_AUTOINCREMENTED was added in JDBC 4. Older drivers won't support it, and even JDBC 4 drivers would need to be tested. This should be done at the beginning of the release, not at the end. - the entity class generator doesn't use the DMD directly. There is a database model layer in the middle that would need to be updated too. For the record, though, the MySQL Connector/J driver does seem to support IS_AUTOINCREMENT. |