1 package se.citerus.dddsample.domain.shared.experimental; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 import java.lang.annotation.RetentionPolicy; 6 import java.lang.annotation.Target; 7 8 /** 9 * Every class that inherits from {@link se.citerus.dddsample.domain.shared.experimental.EntitySupport} 10 * must have exactly one field annotated with this annotation. 11 */ 12 @Retention(RetentionPolicy.RUNTIME) 13 @Target(ElementType.FIELD) 14 public @interface Identity { 15 }