Module litebridge.annotations
Package org.litebridgedb.orm.annotation
Annotation 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
-
Element Details
-
value
Class<?>[] valueSpecifies additional superinterfaces of the entity class that will be recognised by Litebridge relational mapping if used in collections.- Returns:
- An array of
Classobjects representing the additional superinterfaces of the entity class to be recognised.
-