Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2894

Metamodel validation "orphan" errors if implement interface.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 2.0.0-M6
    • 2.0.0-M7
    • None
    • None

    Description

      Given:

      public interface Succeedable<T>

      { T getSuccessor(); void setSuccessor(T successor); }

      when:

      public class BankAccount implements Succeedable<BankAccount>

      {  @Column(allowsNull = "true", name = "successorId") @Property(editing = Editing.DISABLED) @PropertyLayout(hidden = Where.PARENTED_TABLES) @Getter @Setter private BankAccount successor; }

      then get metamodel validation error:

      .BankAccount#getSuccessor(): has annotation @Domain.Include, is assumed to support a property, collection or action. Unmet constraint(s): misspelled prefix or unsupported method signature

      ~~~~

      or:

      org.apache.isis.subdomains.base.applib.Chained

      and

      public class Agreement implements Chained<Agreement>

      Attachments

        Activity

          People

            hobrom Andi Huber
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: