Package io.ebean.annotation
Annotation Type DbJson
-
@Retention(RUNTIME) @Target(FIELD) public @interface DbJson
Specify a property holding JSON content.By default the content will be stored in a DB Clob except on Postgres where DB JSON type is used.
Example:
{@code // Store as JSON on Postgres or Clob on other databases
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intlengthFor VARCHAR storage specify the column length (defaults to 3000).StringnameThe name of the column (Optional).DbJsonTypestorageSpecify the database type used to store the JSON content.
-
-
-
-
length
int length
For VARCHAR storage specify the column length (defaults to 3000).- Default:
- 0
-
-
-
storage
DbJsonType storage
Specify the database type used to store the JSON content.- Default:
- io.ebean.annotation.DbJsonType.JSON
-
-