Annotation Interface DirectCopyTransformMember


@Retention(RUNTIME) @Target(TYPE) public @interface DirectCopyTransformMember
Author:
Jeff Fischer
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    jakarta.persistence.Index[]
     
    The name that should be used when dynamically generating index names instead of the table name.
    boolean
     
    boolean
    Defaults to false.
  • Element Details

    • templateTokens

      String[] templateTokens
    • renameMethodOverlaps

      boolean renameMethodOverlaps
      Default:
      false
    • skipOverlaps

      boolean skipOverlaps

      Defaults to false.

      skipOverlaps is useful if you want to make sure the load time weaving does not try to insert methods you have already implemented. For example, if you have already implemented the Status interface and methods (e.g. Offer), then you don't want the system to try to overwrite these.

      Returns:
      Default:
      true
    • overrideIndexNameKey

      String overrideIndexNameKey
      The name that should be used when dynamically generating index names instead of the table name. This is needed when two entities have table names that create the same dynamic index names. Generally the strategy used to create the table name part of the index is to use the first two characters of each word in the table name split on the underscores.

      i.e. BLC_APPLE_CARROT -> BLAPCA BLC_APPLY_CAR -> BLAPCA

      Since both tables have a collision, BLC_APPLY_CAR can set this property to "BLAPPCA" to avoid collisions

      Returns:
      Default:
      ""
    • indexes

      jakarta.persistence.Index[] indexes
      Default:
      {}