Annotation Type DbMap


@Retention(RUNTIME) @Target(FIELD) public @interface DbMap
Used for mapping a Map<String,String> type property to Postgres HSTORE data type.

The Map property should have keys and values of type String.

Example:



   @DbMap
   Map<String, String> tags;

 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    For VARCHAR storage specify the column length (defaults to 1000).
    The name of the column (Optional).
  • Element Details

    • name

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

      int length
      For VARCHAR storage specify the column length (defaults to 1000).
      Default:
      0