Class Account

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.common.account.Account
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>

@Entity public class Account extends org.ameba.integration.jpa.ApplicationEntity implements Serializable
An Account encapsulates identifying information about the actual cost center. Other domain entities may be assigned to an Account and therefore reserved to be used only by this Account. The Account must not be mixed with the Tenant. A Tenant can have multiple Accounts and is not managed as domain object.
Author:
Heiko Scherrer
See Also:
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    private boolean
    Flag to set the Account as default.
    private @NotEmpty String
    Unique identifier.
    private @NotEmpty String
    Name of the Account.

    Fields inherited from class org.ameba.integration.jpa.ApplicationEntity Link icon

    C_ID
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    All fields,
     
     
    int
    All fields,
    boolean
     
    void
    setDefaultAccount(boolean defaultAccount)
     
    void
    setIdentifier(String identifier)
     
    void
     
    The identifier.

    Methods inherited from class org.ameba.integration.jpa.ApplicationEntity Link icon

    getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKey

    Methods inherited from class org.ameba.integration.jpa.BaseEntity Link icon

    getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • identifier Link icon

      @NotEmpty private @NotEmpty String identifier
      Unique identifier.
    • name Link icon

      @NotEmpty private @NotEmpty String name
      Name of the Account.
    • defaultAccount Link icon

      private boolean defaultAccount
      Flag to set the Account as default.
  • Constructor Details Link icon

    • Account Link icon

      public Account()
  • Method Details Link icon

    • getIdentifier Link icon

      public String getIdentifier()
    • setIdentifier Link icon

      public void setIdentifier(String identifier)
    • getName Link icon

      public String getName()
    • setName Link icon

      public void setName(String name)
    • isDefaultAccount Link icon

      public boolean isDefaultAccount()
    • setDefaultAccount Link icon

      public void setDefaultAccount(boolean defaultAccount)
    • toString Link icon

      public String toString()
      The identifier.
      Overrides:
      toString in class Object
      Returns:
      The identifier
    • equals Link icon

      public boolean equals(Object o)
      All fields,
      Overrides:
      equals in class org.ameba.integration.jpa.ApplicationEntity
    • hashCode Link icon

      public int hashCode()
      All fields,
      Overrides:
      hashCode in class org.ameba.integration.jpa.ApplicationEntity