@Target({FIELD,METHOD})
@Retention(SOURCE)
public @interface OverrideViewProperty
Change a exist property.
If put on a field, the type of the field should be convertible from the original type.
Here are three cases:
1. The field type can be assigned by the original type.
2. Specialize a suitable converter to manually convert the original type to the field type.
3. The field type is the DTO version of the original type.
Or the field type is the Array, List, Set, Stack, Map of DTO version of the original type and their composition, and they share the same shape.
For example: BeanDTO vs Bean,
List<BeanDTO> vs List<Bean>,
Map<String, Set<BeanDTO> vs Map<String, Set<Bean>
- 另请参阅:
NewViewProperty