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

    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

    C_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

    getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKey

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

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

    Methods inherited from class java.lang.Object

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

    • identifier

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

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

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

    • Account

      public Account()
  • Method Details

    • getIdentifier

      public String getIdentifier()
    • setIdentifier

      public void setIdentifier(String identifier)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • isDefaultAccount

      public boolean isDefaultAccount()
    • setDefaultAccount

      public void setDefaultAccount(boolean defaultAccount)
    • toString

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

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

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