Annotations Interfaces, Classes and Traits Extension Annotation that is used to flag which entity a class extends. ExtensionMethod Annotation that is used to link a static method to a model entity.