Annotation Interface AllowInterface


@Target(TYPE) @Retention(RUNTIME) public @interface AllowInterface
Specifies additional superinterfaces of the entity class that will be recognised by Litebridge relational mapping if used in collections.

For example, if the DTO class is defined as class MyDto implements MyInterface, then MyInterface.class should be specified via this annotation to ensure that Litebridge can correctly handle collections of MyInterface instances in related entities.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
    Specifies additional superinterfaces of the entity class that will be recognised by Litebridge relational mapping if used in collections.
  • Element Details

    • value

      Class<?>[] value
      Specifies additional superinterfaces of the entity class that will be recognised by Litebridge relational mapping if used in collections.
      Returns:
      An array of Class objects representing the additional superinterfaces of the entity class to be recognised.