Top "Annotations" questions

In programming, annotations are used to add information to a code element which cannot be expressed by the type system.

Get list of fields with annotation, by using reflection

I create my annotation public @interface MyAnnotation { } I put it on fields in my test object public class TestObject { @MyAnnotation …

java reflection annotations
Adding Java Annotations at Runtime

Is it possible to add an annotation to an object (in my case in particular, a Method) at runtime? For …

java annotations runtime
No implementation was bound - Java Guice

Novice here trying to use a dummy Java Facebook app that uses Guice to inject a database dependency into the …

java dependency-injection annotations guice
What is the use of Annotation "@FindBy"?

Can anyone explain me about Annotation @FindBy in WebDriver? Where and why it is used?

selenium-webdriver annotations webdriver findby
How @Target(ElementType.ANNOTATION_TYPE) works

Java annotations are marked with a @Target annotation to declare possible joinpoints which can be decorated by that annotation. Values …

java annotations
Hibernate : How override an attribute from mapped super class

The generic entity, super class: @MappedSuperclass public abstract class GenericEntity { private Integer id; public Integer getId() {return id;} public void …

java hibernate annotations overriding mappedsuperclass
How is a blob column annotated in Hibernate?

How is a blob column annotated in Hibernate? So far I have a class that has: @Column( name = "FILEIMAGE" ) private …

hibernate annotations blob
@OneToMany mappedBy maps to _____

What does mappedBy map to? Or, rather, what should it map to? The headers field below maps to @Entity Foo …

java jpa annotations one-to-many jpql
what are @Repository and @Autowired used for. (Spring)

I am learning java for 3 months and sometimes i can not understand the usage purpose of something. one topic was …

java spring annotations repository autowired
hibernate one to many using a join table, and hibernate annotations

I want do a one-to-many relationship between two tables using a join table. This is why I want to use …

hibernate annotations one-to-many hibernate-annotations