[JBoss JIRA] (ROASTER-44) Support nested annotations
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-44?page=com.atlassian.jira.plugin... ]
George Gastaldi updated ROASTER-44:
-----------------------------------
Description:
Roaster should allow annotation nesting, like:
{code}
@NamedQueries({
@NamedQuery(name="Customer.findAll", query="select C from Customer C")
})
@Entity
public class Customer {...}
{code}
was:
Roaster should allow annotation nesting, like:
{code}
@NamedQueries({
@NamedQuery(name="Customer.findAll", query="select C from Customer C")
})
@Entity
public class Customer {...}
{code}
> Support nested annotations
> --------------------------
>
> Key: ROASTER-44
> URL: https://issues.jboss.org/browse/ROASTER-44
> Project: Roaster
> Issue Type: Feature Request
> Components: API, JDT
> Affects Versions: 2.9.0.Final
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> Roaster should allow annotation nesting, like:
> {code}
> @NamedQueries({
> @NamedQuery(name="Customer.findAll", query="select C from Customer C")
> })
> @Entity
> public class Customer {...}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (FORGE-2045) NPE when stopping Forge
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2045?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2045.
----------------------------------
Resolution: Cannot Reproduce Bug
Cannot reproduce. Closing
> NPE when stopping Forge
> -----------------------
>
> Key: FORGE-2045
> URL: https://issues.jboss.org/browse/FORGE-2045
> Project: Forge
> Issue Type: Bug
> Affects Versions: 2.10.1.Final
> Reporter: Ondrej Zizka
>
> Happened when stopping Forge (Ctrl+D).
> Could be caused by deleting .forge/addons content while still running.
> {code}
> 03:47:40,711 SEVERE [org.jboss.forge.addon.ui.impl.controller.AbstractCommandController] (Aesh Process Loop 581393411) Error while notifying listeners: java.lang.NullPointerException
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl.getModelResource(MavenFacetImpl.java:111)
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl.getProjectBuildingResult(MavenFacetImpl.java:153)
> at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source) [:1.7.0_65]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]
> at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) [furnace-proxy-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) [furnace-proxy-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.addon.maven.projects.MavenFacetImpl_$$_javassist_9ed88088-cab9-4c3b-984f-38898d2f7c5f.getProjectBuildingResult(MavenFacetImpl_$$_javassist_9ed88088-cab9-4c3b-984f-38898d2f7c5f.java)
> at org.jboss.forge.addon.maven.projects.facets.MavenPackagingFacet.getBuildResult(MavenPackagingFacet.java:184)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_65]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_65]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]
> at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) [furnace-proxy-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) [furnace-proxy-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.addon.maven.projects.facets.MavenPackagingFacet_$$_javassist_d03b0ae4-70b6-423e-ab1a-f46beb7d814e.getBuildResult(MavenPackagingFacet_$$_javassist_d03b0ae4-70b6-423e-ab1a-f46beb7d814e.java)
> at org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener.postCommandExecuted(ProjectBuildStatusListener.java:45)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_65]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_65]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]
> at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) [furnace-proxy-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) [furnace-proxy-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener_$$_javassist_8840c8db-249d-48dd-bb36-4f4e122075a2.postCommandExecuted(ProjectBuildStatusListener_$$_javassist_8840c8db-249d-48dd-bb36-4f4e122075a2.java)
> at org.jboss.forge.addon.ui.impl.controller.AbstractCommandController.firePostCommandExecuted(AbstractCommandController.java:144) [ui-impl-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:89) [ui-impl-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74) [shell-impl-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.forge.addon.shell.ShellImpl$ForgeInterruptHook.handleInterrupt(ShellImpl.java:317) [shell-impl-2.10.1.Final.jar:2.10.1.Final]
> at org.jboss.aesh.console.Console$3.handleInterrupt(Console.java:215) [aesh-0.56.1.jar:0.56.1]
> at org.jboss.aesh.console.AeshInputProcessor.parseOperation(AeshInputProcessor.java:157) [aesh-0.56.1.jar:0.56.1]
> at org.jboss.aesh.console.Console.processInternalOperation(Console.java:615) [aesh-0.56.1.jar:0.56.1]
> at org.jboss.aesh.console.Console.execute(Console.java:605) [aesh-0.56.1.jar:0.56.1]
> at org.jboss.aesh.console.Console.access$700(Console.java:58) [aesh-0.56.1.jar:0.56.1]
> at org.jboss.aesh.console.Console$6.run(Console.java:508) [aesh-0.56.1.jar:0.56.1]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (FORGE-2051) Installing various Java EE Facets duplicate dependencies in build descriptor
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2051?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2051.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.12.2.Final
(was: 2.x Future)
Resolution: Done
> Installing various Java EE Facets duplicate dependencies in build descriptor
> ----------------------------------------------------------------------------
>
> Key: FORGE-2051
> URL: https://issues.jboss.org/browse/FORGE-2051
> Project: Forge
> Issue Type: Bug
> Components: Builtin Plugins, Java EE
> Affects Versions: 2.11.0.Final
> Reporter: Lincoln Baxter III
> Assignee: George Gastaldi
> Fix For: 2.12.2.Final
>
>
> {code}
> project-new --named blahhh
> javaee-setup --javaEEVersion 7
> jpa-new-entity --named Blahhhhh
> {code}
> Even though the javax.enterprise:javaee-api is installed, individual specifications still add their own duplicate provided APIs. This should not be the case. EE* should satisfy all spec dependency requirements.
> {code}
> apply from: 'forge.gradle'
> apply plugin: 'war'
> apply plugin: 'java'
> repositories {
> mavenCentral()
> }
> version = "1.0.0-SNAPSHOT"
> group = "org.gradleTest"
> archiveName 'gradleTest'
> dependencies {
> direct group: "javax", name: "javaee-api"
> direct group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api"
> direct group: "javax.enterprise", name: "cdi-api"
> direct group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec"
> }
> allprojects {
> dependencies {
> managed configuration: "compile", group: "javax", name: "javaee-api", version: "7.0"
> managed configuration: "import", group: "org.jboss.spec", name: "jboss-javaee-6.0", version: "3.0.2.Final", ext: "pom"
> managed configuration: "compile", group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api", version: "1.0.1.Final"
> managed configuration: "compile", group: "javax.enterprise", name: "cdi-api", version: "1.0-SP4"
> managed configuration: "compile", group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec", version: "1.0.0.Final"
> }
> }
> {code}
> Should be:
> {code}
> apply from: 'forge.gradle'
> apply plugin: 'war'
> apply plugin: 'java'
> repositories {
> mavenCentral()
> }
> version = "1.0.0-SNAPSHOT"
> group = "org.gradleTest"
> archiveName 'gradleTest'
> dependencies {
> direct group: "javax", name: "javaee-api"
> }
> allprojects {
> dependencies {
> managed configuration: "compile", group: "javax", name: "javaee-api", version: "7.0"
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (FORGE-2138) Being able to add a @NamedQuery to an existing entity
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2138?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-2138:
----------------------------------------
The query needs to quoted: eg. {{jpa-new-named-query --named findAll --query "select B from Book B"}}
> Being able to add a @NamedQuery to an existing entity
> -----------------------------------------------------
>
> Key: FORGE-2138
> URL: https://issues.jboss.org/browse/FORGE-2138
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.12.2.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> It would be useful to have a command to add a new JPA NamedQuery to an existing entity. A command such as :
> {code}
> jpa-new-named-query --named findAll --query select b from Book b
> {code}
> Would add to an existing entity the following code :
> {code}
> @Entity
> @NamedQueries({
> @NamedQuery(name = Book.FIND_ALL, query = "SELECT b FROM Book b")
> })
> public class Book implements Serializable
> {
> public static final String FIND_ALL = "Book.findAll";
> ...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (FORGE-2139) Forge doesn't start on IntelliJ 14
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2139?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2139.
----------------------------------
Resolution: Done
Hi John,
You need to configure IntelliJ to start under a JDK 7.
See instructions here: https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK...
> Forge doesn't start on IntelliJ 14
> ----------------------------------
>
> Key: FORGE-2139
> URL: https://issues.jboss.org/browse/FORGE-2139
> Project: Forge
> Issue Type: Bug
> Components: UI - IntelliJ IDEA
> Reporter: John Ament
>
> The IntelliJ plugin fails to start on IntelliJ 14 due to the following:
> Plugin 'org.jboss.forge.plugin.idea' failed to initialize and will be disabled. Please restart IntelliJ IDEA.
> com.intellij.diagnostic.PluginException: org/jboss/forge/plugin/idea/service/ForgeService : Unsupported major.minor version 51.0 [Plugin: org.jboss.forge.plugin.idea]
> at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:130)
> at com.intellij.ide.plugins.cl.PluginClassLoader.a(PluginClassLoader.java:77)
> at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:249)
> at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:422)
> at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:412)
> at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:398)
> at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:107)
> at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:86)
> at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:110)
> at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:510)
> at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:492)
> at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:158)
> at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:66)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
> at java.awt.EventQueue.access$400(EventQueue.java:82)
> at java.awt.EventQueue$2.run(EventQueue.java:676)
> at java.awt.EventQueue$2.run(EventQueue.java:674)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
> at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:364)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
> Caused by: java.lang.UnsupportedClassVersionError: org/jboss/forge/plugin/idea/service/ForgeService : Unsupported major.minor version 51.0
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
> at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:195)
> at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:191)
> at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:167)
> at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:124)
> ... 30 more
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (FORGE-2139) Forge doesn't start on IntelliJ 14
by John Ament (JIRA)
[ https://issues.jboss.org/browse/FORGE-2139?page=com.atlassian.jira.plugin... ]
John Ament commented on FORGE-2139:
-----------------------------------
This was on a mac.
> Forge doesn't start on IntelliJ 14
> ----------------------------------
>
> Key: FORGE-2139
> URL: https://issues.jboss.org/browse/FORGE-2139
> Project: Forge
> Issue Type: Bug
> Components: UI - IntelliJ IDEA
> Reporter: John Ament
>
> The IntelliJ plugin fails to start on IntelliJ 14 due to the following:
> Plugin 'org.jboss.forge.plugin.idea' failed to initialize and will be disabled. Please restart IntelliJ IDEA.
> com.intellij.diagnostic.PluginException: org/jboss/forge/plugin/idea/service/ForgeService : Unsupported major.minor version 51.0 [Plugin: org.jboss.forge.plugin.idea]
> at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:130)
> at com.intellij.ide.plugins.cl.PluginClassLoader.a(PluginClassLoader.java:77)
> at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:249)
> at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:422)
> at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:412)
> at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:398)
> at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:107)
> at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:86)
> at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:110)
> at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:510)
> at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:492)
> at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:158)
> at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:66)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
> at java.awt.EventQueue.access$400(EventQueue.java:82)
> at java.awt.EventQueue$2.run(EventQueue.java:676)
> at java.awt.EventQueue$2.run(EventQueue.java:674)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
> at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:364)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
> Caused by: java.lang.UnsupportedClassVersionError: org/jboss/forge/plugin/idea/service/ForgeService : Unsupported major.minor version 51.0
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
> at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:195)
> at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:191)
> at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:167)
> at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:124)
> ... 30 more
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (FORGE-2139) Forge doesn't start on IntelliJ 14
by John Ament (JIRA)
John Ament created FORGE-2139:
---------------------------------
Summary: Forge doesn't start on IntelliJ 14
Key: FORGE-2139
URL: https://issues.jboss.org/browse/FORGE-2139
Project: Forge
Issue Type: Bug
Components: UI - IntelliJ IDEA
Reporter: John Ament
The IntelliJ plugin fails to start on IntelliJ 14 due to the following:
Plugin 'org.jboss.forge.plugin.idea' failed to initialize and will be disabled. Please restart IntelliJ IDEA.
com.intellij.diagnostic.PluginException: org/jboss/forge/plugin/idea/service/ForgeService : Unsupported major.minor version 51.0 [Plugin: org.jboss.forge.plugin.idea]
at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:130)
at com.intellij.ide.plugins.cl.PluginClassLoader.a(PluginClassLoader.java:77)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:422)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:412)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:398)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:107)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:86)
at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:110)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:510)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:492)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:158)
at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:66)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:364)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.UnsupportedClassVersionError: org/jboss/forge/plugin/idea/service/ForgeService : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:195)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:191)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:167)
at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:124)
... 30 more
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months
[JBoss JIRA] (FORGE-2138) Being able to add a @NamedQuery to an existing entity
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2138:
----------------------------------------
Summary: Being able to add a @NamedQuery to an existing entity
Key: FORGE-2138
URL: https://issues.jboss.org/browse/FORGE-2138
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.12.2.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be useful to have a command to add a new JPA NamedQuery to an existing entity. A command such as :
{code}
jpa-new-named-query --named findAll --query select b from Book b
{code}
Would add to an existing entity the following code :
{code}
@Entity
@NamedQueries({
@NamedQuery(name = Book.FIND_ALL, query = "SELECT b FROM Book b")
})
public class Book implements Serializable
{
public static final String FIND_ALL = "Book.findAll";
...
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
10 years, 2 months