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 generated resource beans and converters do not handle m-n relationships properly and resulting application will break. This is a showstopper issue because the j1 demo music database contains association tables for m-n relationships.
Created attachment 41682 [details] Patch file for the fixes
The attached patch has been reviewed to be limited and safe. It is also tested to be working properly. Please go ahead with integration.
Fixes checked into both release60-m9 branch and trunk.
I'm currently unable to verify this, because of an issue with attached app -unzip attached app and open it in the IDE -invoke Test Rest... action on the project -invoke Test WS action on the web service in the project and invoke the ws operation through the WS Tester application in GlassFish (just to create some dummy entries in tables) -invoke GET on some resource in the RESTbeans test app => fails with sth like: java.lang.IllegalStateException: Exception Description: Cannot use an EntityTransaction while using JTA. at oracle.toplink.essentials.internal.ejb.cmp3.transaction.JTATransactionWrapper.getTransaction(JTATransactionWrapper.java:66) at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.getTransaction(EntityManagerImpl.java:340) at service.PersistenceService.rollbackTx(PersistenceService.java:157) at service.PersistenceService.close(PersistenceService.java:169) at service.AddressResource.getJson(AddressResource.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ...
Created attachment 46231 [details] sample app
Closed as work-for-me for now because I verify this bug working fine with GlassFish build 57-rc. Please reopen if still reproducible with new detailed data about specific Glassfish build and new current web app project.
v.