@Retention(value=RUNTIME) @Target(value=FIELD) public @interface DbJsonB
The content will be stored on Postgres using it's JSONB type and as Clob for other databases.
This is equivalent to using @DbJson(storage = DbJsonType.JSONB)
// Store as JSONB on Postgres or Clob on other databases
@DbJsonB
Map<String,Object> content;
// Store as JSONB on Postgres or Clob on other databases
@DbJson(storage = DbJsonType.JSONB)
Map<String,Object> content;
| Modifier and Type | Optional Element and Description |
|---|---|
int |
length
For VARCHAR storage specify the column length.
|
public abstract int length
Copyright © 2019. All rights reserved.