Annotation Interface PartitionIDs


@Retention(RUNTIME) @Target(TYPE) public @interface PartitionIDs
Specifies columns that must be used to form an UPDATE and DELETE statements in addition to a primary key. Some databases (MySQL, MariaDB) provide a partitioning feature. In order to take advantage of it, UPDATE and DELETE statements need to include columns which were used for partitioning, otherwise such queries will not be efficient.

Usage:

     @PartitionIDs("client_id", "dob")
     public class User{ }
 
Author:
igor on 9/2/17.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details