Annotation ve Metaveri
Java annotation'ları, retention policy (SOURCE, CLASS, RUNTIME), custom annotation oluşturma, annotation processing (APT) ve compile-time kod üretimi (javax.annotation.processing). Runtime'da reflection ile annotation okuma ve framework'lerde kullanım örnekleri (Spring, JPA).
Custom annotation örneği
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface AggregateRoot { String value() default ""; }
@AggregateRoot("User")
public class User { /* ... */ }