Top "Annotations" questions

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

iPhone MKMapView Annotation Clustering

I've got quite a lot of pins to put on my map so I think it would be a nice …

iphone annotations mkmapview markerclusterer
Get annotated parameters inside a pointcut

I have two annotation @LookAtThisMethod and @LookAtThisParameter, if I have a pointcut around the methods with @LookAtThisMethod how could I …

java annotations aop aspectj
MKMapView moving Annotations Automatically - animate them?

I have a data set of annotations that can update very quickly. At the moment I remove all annotations before …

iphone annotations mkmapview mkannotationview
Inheriting class annotations

Is there a way to make classes inherit annotations from a superclass ? e.g. @ApplicationException(rollback=true) public abstract class …

java annotations ejb-3.0
isAnnotationPresent() return false when used with super type reference in Java

I m trying to get the annotation details from super type reference variable using reflection, to make the method accept …

java reflection annotations supertype
How to suppress "unknown enum constant" warnings?

The Checkers Framework references java.lang.annotation.ElementType.TYPE_USE which was added in JDK8. When I use it under …

java annotations javac checker-framework
How to use dynamic SQL query in MyBatis with annotation(how to use selectProvider)?

I am trying to avoid having an additional xml to define the mapper in mybatis3. Annotation fits right in. I …

orm annotations mapping mybatis
Checking if an annotation is of a specific type

I am using reflection to see if an annotation that is attached to a property of a class, is of …

java reflection annotations instanceof isinstance
@NamedQuery over @NamedNativeQuery

Is there any benefit of using @NamedQuery over @NamedNativeQuery in hibernate or vice verse. I cant spot the exact difference …

java hibernate annotations hql
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on <entity> references an unknown entity

I am receiving the following Hibernate Exception: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on cz.rohan.dusps.model.Switchport.konfiguracniTemplateAccess …

java hibernate annotations entity many-to-one