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;
}

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.