Package org.openwms.common.account
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
Modifier and TypeFieldDescriptionprivate 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
All fields,getName()
int
hashCode()
All fields,boolean
void
setDefaultAccount
(boolean defaultAccount) void
setIdentifier
(String identifier) void
toString()
Theidentifier
.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
-
Field Details
-
identifier
Unique identifier. -
name
Name of the Account. -
defaultAccount
private boolean defaultAccountFlag to set the Account as default.
-
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
getIdentifier
-
setIdentifier
-
getName
-
setName
-
isDefaultAccount
public boolean isDefaultAccount() -
setDefaultAccount
public void setDefaultAccount(boolean defaultAccount) -
toString
Theidentifier
. -
equals
All fields,- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()All fields,- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-