Class ExplicitAccessTestEntity
java.lang.Object
org.fastnate.generator.test.access.ExplicitAccessTestEntity
An example entity that has an explicit
Access annotation.- Author:
- Tobias Liefke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()The id of thisExplicitAccessTestEntity.getName()The name of thisExplicitAccessTestEntity.protected voidsetId(long id) Sets the id of thisExplicitAccessTestEntity.voidSets the name of thisExplicitAccessTestEntity.
-
Constructor Details
-
ExplicitAccessTestEntity
protected ExplicitAccessTestEntity() -
ExplicitAccessTestEntity
-
-
Method Details
-
getId
public long getId()The id of thisExplicitAccessTestEntity.- Returns:
- the id
-
getName
The name of thisExplicitAccessTestEntity. Uses a different field to ensure, that only this method is used.- Returns:
- the name
-
setId
protected void setId(long id) Sets the id of thisExplicitAccessTestEntity.- Parameters:
id- the new id to set
-
setName
Sets the name of thisExplicitAccessTestEntity.- Parameters:
name- the new name to set
-