Package org.fastnate.generator.test.ids
Class IdTestEntity<O extends IdTestEntity<O>>
java.lang.Object
org.fastnate.generator.test.ids.IdTestEntity<O>
- Type Parameters:
O- the type of this class for referencing our self ingetOther()
- Direct Known Subclasses:
FixedIdTestEntity,IdentityTestEntity,PrimitiveIdTestEntity,SequenceTestEntity,TableTestEntity
Base class for all test entities that test the writing of ids.
- Author:
- Tobias Liefke
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IdTestEntity
-
IdTestEntity
public IdTestEntity()
-
-
Method Details
-
getId
The ID of this entity.- Returns:
- the ID - the type depends on the kind of generation
-
getOther
The other entity of the same type.- Returns:
- another entity, for testing references with the id
-
setOther
Sets the other entity.- Parameters:
other- another entity of the same type, for testing references with the id
-
toString
-
getName
-
setName
-