Class AdvancedRevisionEntity
- java.lang.Object
-
- com.devonfw.module.jpa.dataaccess.api.AdvancedRevisionEntity
-
- All Implemented Interfaces:
GenericEntity<Long>,PersistenceEntity<Long>,Serializable
@Entity public class AdvancedRevisionEntity extends Object implements PersistenceEntity<Long>
This is a customrevision entityalso containing the actual user.- See Also:
DefaultRevisionEntity, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AdvancedRevisionEntity()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDate()LonggetId()intgetModificationCounter()longgetTimestamp()StringgetUserLogin()voidsetId(Long id)voidsetModificationCounter(int modificationCounter)voidsetTimestamp(long timestamp)voidsetUserLogin(String userLogin)
-
-
-
Method Detail
-
getId
public Long getId()
- Specified by:
getIdin interfaceGenericEntity<Long>
-
setId
public void setId(Long id)
- Specified by:
setIdin interfaceGenericEntity<Long>- Parameters:
id- is the new value ofgetId().
-
getTimestamp
public long getTimestamp()
- Returns:
- the timestamp when this revision has been created.
-
setTimestamp
public void setTimestamp(long timestamp)
- Parameters:
timestamp- is the new value ofgetTimestamp().
-
getUserLogin
public String getUserLogin()
- Returns:
- the login or id of the user that has created this revision.
-
setUserLogin
public void setUserLogin(String userLogin)
- Parameters:
userLogin- is the new value ofgetUserLogin().
-
getModificationCounter
public int getModificationCounter()
- Specified by:
getModificationCounterin interfaceGenericEntity<Long>
-
setModificationCounter
public void setModificationCounter(int modificationCounter)
- Specified by:
setModificationCounterin interfaceGenericEntity<Long>
-
-