G
grz01
Hi again,
Another reflection question...
I can get at the annotations of a class by doing something like:
import java.lang.annotation.Annotation
...
Bean bean = new Bean();
Annotation a = bean.getClass().getAnnotations()[0];
But if the Annotation has parameters, like
@Table(name="FOOBAR")
public class Bean{ ... }
how do I extract the argument here (i e: name = "FOOBAR") ?
Looking at the java.lang.annotation.Annotation class, I dont see any
method for this?
TIA / grz01
Another reflection question...
I can get at the annotations of a class by doing something like:
import java.lang.annotation.Annotation
...
Bean bean = new Bean();
Annotation a = bean.getClass().getAnnotations()[0];
But if the Annotation has parameters, like
@Table(name="FOOBAR")
public class Bean{ ... }
how do I extract the argument here (i e: name = "FOOBAR") ?
Looking at the java.lang.annotation.Annotation class, I dont see any
method for this?
TIA / grz01