Get Annotation Option Using IntelliJ IDEA Structural Search

I am trying to create named queries for JPA objects using the table name specified in the @Tablestructured search and replace annotation .

So, to get started, I'm trying to create the following template:

@Table($param$ = $value$)
public class $clazz$

I have many classes like:

@Table(name = "Some Table")
public class SomeClass

and if I replace with the same template, it correctly grasps that $ param $ is name, $ clazz $ is the correct class name, but $ value $ is empty.

I am using IDEA 12 build 128.101

What am I doing wrong? Thank.

+5
source share
1 answer

I think this problem has been around for a long time , but no one seems to care about it. Try voting for a ticket to youtrack.

+4

All Articles