Package org.fastnate.generator.test.ids
Class TableTestEntity
java.lang.Object
org.fastnate.generator.test.ids.IdTestEntity<TableTestEntity>
org.fastnate.generator.test.ids.TableTestEntity
An entity that uses a table for generating its primary key.
- Author:
- Tobias Liefke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()The ID of this entity.getOther()The other entity of the same type.voidsetOther(TableTestEntity other) Sets the other entity.Methods inherited from class org.fastnate.generator.test.ids.IdTestEntity
getName, setName, toString
-
Constructor Details
-
TableTestEntity
Creates a new instance ofTableTestEntity.- Parameters:
name- the name of the entity
-
TableTestEntity
public TableTestEntity()
-
-
Method Details
-
getId
Description copied from class:IdTestEntityThe ID of this entity.- Specified by:
getIdin classIdTestEntity<TableTestEntity>- Returns:
- the ID - the type depends on the kind of generation
-
getOther
Description copied from class:IdTestEntityThe other entity of the same type.- Specified by:
getOtherin classIdTestEntity<TableTestEntity>- Returns:
- another entity, for testing references with the id
-
setOther
Description copied from class:IdTestEntitySets the other entity.- Specified by:
setOtherin classIdTestEntity<TableTestEntity>- Parameters:
other- another entity of the same type, for testing references with the id
-