Generate JPA entities for the sample database bundled with NetBeans.
Customer table, Discount Code and Micro Market are picked as related tables on Mac but not on Windows. As a result the generated mapping is different.
from email thread there is a difference in captured scheme
see http://netbeans.org/kb/docs/ide/java-db.html and Recreate Table dialog, there is nothing about micromarket, not sure why it may happen to be in relation on mac
http://netbeans.org/kb/docs/websvc/rest.html one more tutorial with Customer relation, may be this tutorials was created on win, but to be sure, can you reinstall your sample db?
Depends on version on Sample database installed on your computer. Look on issue 197501 which caused different records in sample database, together with that issue was fixed a missing foreign key in Customer table to Micro Market. It means since NB701 all new installations of Java DB Sample database contains the new records and keys.
How to re-install the sample database to contains new records? Remove all content of Java DB Database location (e.g. /home/user/.netbeans-derby on unix manachines), the current location found in Java DB node under Database root node in Services tab. Then run IDE with fresh userdir. In that case new records will deployed into Sample database.