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.
Environment: Vista, NB6, MySQL MyTable has a 2-field primary key. The desktop/database wizard creates a class that has, say, MyTablePK (representing the primary key) as a property, along with all the non-PK fields. The fields that make up the PK ARE accessible through the created MyTablePK.java class, but they are not passed through to MyTable.java. So when trying to run the generated project, the 'field not found' error pops up, of course. Easy to fix, in MyTable.java, add getters for each of the pk fields: public String getField1() { return MyTablePk.Field1; }
*** Issue 104468 has been marked as a duplicate of this issue. ***
We should improve data binding support to handle multi-column primary keys better. Unfortunately, we have to wait until issue 103058 is fixed. JPA metamodel doesn't provide information about Embeddable objects by now.
*** Issue 121426 has been marked as a duplicate of this issue. ***
*** Issue 124133 has been marked as a duplicate of this issue. ***
*** Issue 148018 has been marked as a duplicate of this issue. ***