Annotation Type ForeignTable


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface ForeignTable
    Indicates a foreign key exists on the linked entity. It is transient, meaning there is no corresponding column for this attribute.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String joinKey
      Indicates which attribute in the linked entity is the foreign key to use for this link.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean optional
      Specifies if the link is optional or not.
    • Element Detail

      • joinKey

        String joinKey
        Indicates which attribute in the linked entity is the foreign key to use for this link.
      • optional

        boolean optional
        Specifies if the link is optional or not. If not optional, it means it should always exist a linked entity with a foreign key linked to this entity.
        Default:
        true