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
FieldsModifier and TypeFieldDescriptionprivate booleanFlag to set the Account as default.private @NotEmpty StringUnique identifier.private @NotEmpty StringName of the Account.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAll fields,getName()inthashCode()All fields,booleanvoidsetDefaultAccount(boolean defaultAccount) voidsetIdentifier(String identifier) voidtoString()Theidentifier.Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKeyMethods 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:
equalsin classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()All fields,- Overrides:
hashCodein classorg.ameba.integration.jpa.ApplicationEntity
-