Home > Guides > Core Developers Guide > Annotations > KeyProperty Annotation |

Apache Struts 2 Documentation
KeyProperty Annotation
Edit Page Browse Space Add Page Add News

Sets the KeyProperty for type conversion.

## Usage

The KeyProperty annotation must be applied at field or method level.

This annotation should be used with Generic types, if the key property of the key element needs to be specified.

## Parameters

Parameter | Required | Default | Description
--- | --- | --- | ---
value | no | id | The key property value.

## Examples