Annotation Type NaturalId


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface NaturalId
    This specifies that a property is part of the natural id of the entity.
    See Also:
    NaturalIdCache
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean mutable
      Whether the natural id is mutable (or immutable)? false (the default) indicates it is immutable; true indicates it is mutable.
    • Element Detail

      • mutable

        boolean mutable
        Whether the natural id is mutable (or immutable)? false (the default) indicates it is immutable; true indicates it is mutable.
        Default:
        false