@Retention(value=RUNTIME) @Target(value={TYPE,ANNOTATION_TYPE}) @Documented public @interface DomainClass
Modifier and Type | Fields and Description |
---|---|
static String |
DEFAULT_NAME
Default value for
value() indicating that domainClass() should be set. |
Modifier and Type | Optional Element and Description |
---|---|
Class |
domainClass
Class for the domain object.
|
String |
value
Fully qualified class name for the domain object.
|
public static final String DEFAULT_NAME
value()
indicating that domainClass()
should be set.public abstract String value
Using this allows you to avoid a compile dependency on the class name but makes the connection more brittle
when refactoring. The value is ignored if domainClass()
is set.
Copyright © 2022. All rights reserved.