Annotation Type Entity


  • @Target(TYPE)
    @Retention(SOURCE)
    public @interface Entity
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      KeyComponent[] keyComponents
      An array of KeyComponents that will be used to generate a KeyBuilder that always generates a suitable key for this entity.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String keyDelimiter  
    • Element Detail

      • keyComponents

        KeyComponent[] keyComponents
        An array of KeyComponents that will be used to generate a KeyBuilder that always generates a suitable key for this entity. At least one KeyComponent must be defined. It is up to the programmer to define key formats that will not collide with one another. This annotation is constructed for easy readability for code reviews.
        Returns:
        An array of key components
      • keyDelimiter

        java.lang.String keyDelimiter
        Returns:
        The delimiter used to join the keyComponents() for all entites of the annotated type.
        Default:
        "::"