@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
.
Fields annotated with @Inject, @Autowired or @Resource as well as final or static fields
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 © 2024. All rights reserved.