Annotation Type DbPartition


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface DbPartition
    Specify that the underlying table is partitioned.

    This is currently only useful for Postgres 10 range partitioned tables and not used for any other database or ElasticSearch or other non-range partitioning.

    This modifies the Postgres DDL generation only adding range partitioning clause and suppressing foreign key constraints to partitioned tables.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      PartitionMode mode
      The partition mode.
      String property
      The property or column to partition on.