Annotation Type StorageEngine


@Target(TYPE) @Retention(RUNTIME) public @interface StorageEngine
Specify a storage engine to use with a specific table.

Intended for databases like ClickHouse and MySql that have multiple storage engine options.


@StorageEngine("ENGINE = MergeTree()")
@Entity
public class Orders {
  ...
}

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The platform specific storage engine clause that would be part of create table statements.
  • Element Details

    • value

      String value
      The platform specific storage engine clause that would be part of create table statements.