Package pl.matsuo.core.model
Class AbstractEntity
java.lang.Object
pl.matsuo.core.model.AbstractEntity
- All Implemented Interfaces:
Comparable<AbstractEntity>,HasId
- Direct Known Subclasses:
AbstractEntityHistory,AbstractMessage,AbstractParty,AccessLog,Address,Execution,Group,KeyValueEntity,Numeration,NumerationSchema,User
@MappedSuperclass public abstract class AbstractEntity extends Object implements HasId, Comparable<AbstractEntity>
-
Field Summary
Fields Modifier and Type Field Description protected StringcreatedByprotected InstantcreatedTimeprotected Longidprotected LongidBucketThis is id defining most general data association to privileges.protected StringlastModifiedByprotected InstantlastModifiedTime -
Constructor Summary
Constructors Constructor Description AbstractEntity() -
Method Summary
Modifier and Type Method Description intcompareTo(AbstractEntity entity)
-
Field Details
-
id
-
createdTime
-
createdBy
-
lastModifiedTime
-
lastModifiedBy
-
idBucket
This is id defining most general data association to privileges. In most common situation this id is user id or company id (data aggregated for many users in organization). This id must always match user's idBucket.All client data must have idBucket assigned. Only it administrative data (like logs from logged-off users) may be disconnected.
-
-
Constructor Details
-
AbstractEntity
public AbstractEntity()
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<AbstractEntity>
-