Class Organisation

java.lang.Object
org.fastnate.examples.model.Organisation

@Entity public class Organisation extends Object
A simple example of an entity that is imported from files. See OrganisationData and "src/manin/data" for more.
Author:
Tobias Liefke
  • Constructor Details

    • Organisation

      public Organisation()
    • Organisation

      public Organisation(Long id, Organisation parent, String name, String url, float profit, List<Organisation> children)
      Creates a new Organisation instance.
      Parameters:
      id - The ID of the organisation from the input files.
      parent - The parent organisation.
      name - The name of the organisation.
      url - The URL to the website of the organisation.
      profit - The profit of this organisation.
      children - The child organisations.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public Long getId()
      The ID of the organisation from the input files.
    • getParent

      public Organisation getParent()
      The parent organisation.
    • getName

      public String getName()
      The name of the organisation.
    • getUrl

      public String getUrl()
      The URL to the website of the organisation.
    • getProfit

      public float getProfit()
      The profit of this organisation.
    • getChildren

      public List<Organisation> getChildren()
      The child organisations.
    • setId

      public void setId(Long id)
      The ID of the organisation from the input files.
    • setParent

      public void setParent(Organisation parent)
      The parent organisation.
    • setName

      public void setName(String name)
      The name of the organisation.
    • setUrl

      public void setUrl(String url)
      The URL to the website of the organisation.
    • setProfit

      public void setProfit(float profit)
      The profit of this organisation.
    • setChildren

      public void setChildren(List<Organisation> children)
      The child organisations.