Package io.micronaut.data.annotation
Annotation Interface EntityRepresentation
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Documented
@Inherited
public @interface EntityRepresentation
Defines entity representation for database operations. Is type is TABULAR it means default entity representation
 and COLUMN will mean result will contain single column with the value of given type.
- Since:
- 4.0.0
- Author:
- radovanradic
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe column type.static enumSupported entity representation types.
- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescription
- 
Field SummaryFields
- 
Field Details- 
DEFAULT_COLUMNThe default column name for the JSON data.- See Also:
 
 
- 
- 
Element Details- 
type- Returns:
- The query result type
 
 
- 
- 
- 
columnTypeEntityRepresentation.ColumnType columnType- Returns:
- the column type if type is EntityRepresentation.Type.COLUMN
 - Default:
- JSON
 
- 
columnString column- Returns:
- The column containing result if type is EntityRepresentation.Type.COLUMN
 - Default:
- "DATA"
 
- 
jsonDataTypeJsonDataType jsonDataType- Returns:
- The JSON data type that resulting column will hold if type is EntityRepresentation.Type.COLUMNand columnType isEntityRepresentation.ColumnType.JSON. It helps to pick proper column reader based on result data type
 - Default:
- DEFAULT
 
 
-