Interface IdentifiableEntity
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
Entity<E,I>
,Replacement<T>
- All Known Implementing Classes:
AbstractJpaEntity
,ActiveState
,Attendee
,BasicJpaEntity
,Calendar
,CalendarComponent
,CalendarEvent
,CalendarEventOccurrence
,ContributionTrackingEvent
,DateTimeReminder
,DelayedNotificationData
,DelayedNotificationUserSetting
,DocumentPermalink
,DownloadDetail
,DurationReminder
,ExternalAccount
,ExternalAttendee
,HistoryStepImpl
,InterestedUser
,InternalAttendee
,LocalizedPdcAxisValue
,LockingUser
,NodeTicket
,NotificationResourceData
,PdcAxisValue
,PdcClassification
,PersistentResourceDateReminder
,PersistentResourceToken
,POPUPMessageBean
,ProcessInstanceImpl
,PublicationTicket
,QuestionImpl
,Quota
,Rating
,Reminder
,ReplacementImpl
,ServerMessageBean
,SILVERMAILMessageBean
,SilverpeasJpaEntity
,SimpleFileTicket
,SPGroup
,SPUser
,Ticket
,UndoHistoryStep
,UserInfoImpl
,UserPreferences
,UserSettingsImpl
,Variable
,VariableScheduledValue
,VersionFileTicket
,VersionPermalink
,WorkflowErrorImpl
,WorkingUser
public interface IdentifiableEntity extends Serializable
An identifiable entity is a serializable business entity that is uniquely identifiable over the time and over different runtime. All entities to be persisted should implement this interface. The persistence of an identifiable entity should be ensures by aEntityRepository
. Because an identifiable entity is a business object, it is strongly recommended to expose the business operations related to the entity itself directly within its interface. In the same way, we recommend to perform repository related operations through the entity itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getId()
Gets the unique identifier of this entity.boolean
isPersisted()
Indicates if the entity is persisted.
-
-
-
Method Detail
-
getId
String getId()
Gets the unique identifier of this entity.- Returns:
- the entity unique identifier in the form of a string.
-
isPersisted
boolean isPersisted()
Indicates if the entity is persisted.- Returns:
- true if the entity is stored in a data source, false otherwise.
-
-