-
Bug
-
Resolution: Done
-
Major
-
2.6.0.Final
-
None
An exception is reported with the following stack trace when REST resource generation fails for JPA entities with composite keys (@EmbeddedId:
java.lang.RuntimeException: Could not determine @Id field and getter method for @Entity [org.jboss.tools.example.html5.model.FilmActor]. Aborting. at org.jboss.forge.addon.javaee.rest.generator.ResourceGeneratorUtil.resolveIdGetterName(ResourceGeneratorUtil.java:145) at org.jboss.forge.addon.javaee.rest.generator.impl.EntityBasedResourceGenerator.generateFrom(EntityBasedResourceGenerator.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65) at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81) at org.jboss.forge.addon.javaee.rest.generator.impl.EntityBasedResourceGenerator_$$_javassist_d10f5401-9972-4f96-ba89-8e8833705b48.generateFrom(EntityBasedResourceGenerator_$$_javassist_d10f5401-9972-4f96-ba89-8e8833705b48.java) at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand.generateEndpoints(JSONRestResourceFromEntityCommand.java:187) at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand.execute(JSONRestResourceFromEntityCommand.java:167) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65) at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81) at org.jboss.forge.addon.angularjs.JSONRestResourceFromEntityCommand_$$_javassist_b26e6b41-cbde-47b0-a4a2-7879059dbd3e.execute(JSONRestResourceFromEntityCommand_$$_javassist_b26e6b41-cbde-47b0-a4a2-7879059dbd3e.java) at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153) at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$1.call(ClassLoaderAdapterCallback.java:103) at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:76) at org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_be645963-85e1-45bb-bcdb-002e62a409fe.execute(CommandController_$$_javassist_be645963-85e1-45bb-bcdb-002e62a409fe.java) at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:90) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)