Annotation Type DbJsonB


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface DbJsonB
    Specify a property holding JSON content.

    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)

    Example:

    {@code
    
     // Store as JSONB on Postgres or Clob on other databases
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int length
      For VARCHAR storage specify the column length.
      String name
      The name of the column (Optional).
    • Element Detail

      • name

        String name
        The name of the column (Optional).
        Default:
        ""
      • length

        int length
        For VARCHAR storage specify the column length.
        Default:
        0