@Documented @Retention(value=RUNTIME) @Target(value={FIELD,ANNOTATION_TYPE}) public @interface Unmapped
Excludes a field from the resource-to-model mapping. The annotated field's value is not
resolved from the Resource
. Note: Fields annotated with javax.inject.Inject
are automatically considered Unmapped
, thus this annotation is not required for such fields.
@ResourceModel
(types = "/my/resource/type")
public class MyModel {
@Unmapped
private String something;
}
Copyright © 2018. All rights reserved.