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