java.lang.Object
org.tentackle.maven.plugin.wizard.pdodata.NonCompositeRelation

public class NonCompositeRelation extends Object
Info for a non-composite object relation.
Used for members such as blahId or nm-relations.
The related PDOs must provide a unique domain key.
  • Constructor Details

    • NonCompositeRelation

      public NonCompositeRelation(Relation relation, org.tentackle.pdo.PersistentDomainObject<?> relatedPdo)
      Create item relation info.
      Parameters:
      relation - the model relation
      relatedPdo - the unique domain key to load the relation
  • Method Details

    • getRelation

      public Relation getRelation()
      Gets the non-composite object relation.
      Returns:
      the relation, never null
    • getRelatedPdo

      public org.tentackle.pdo.PersistentDomainObject<?> getRelatedPdo()
      Gets the related PDO.
      Returns:
      the PDO, never null
    • toString

      public String toString()
      Overrides:
      toString in class Object