Class TestRecursiveEntity
java.lang.Object
org.fastnate.generator.test.BaseTestEntity
org.fastnate.generator.test.recursion.TestRecursiveEntity
Entity to test recursion in SQL generation.
- Author:
- Tobias Liefke
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection<TestRecursiveEntity> private @NotNull @Size(min=1) Stringprivate static final intprivate TestRecursiveEntity -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTestRecursiveEntity(TestRecursiveEntity parent, String name) Creates a new instance ofTestRecursiveEntity. -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidsetChildren(Collection<TestRecursiveEntity> children) voidMethods inherited from class org.fastnate.generator.test.BaseTestEntity
equals, getId, hashCode, toString
-
Field Details
-
NAME_LENGTH
private static final int NAME_LENGTH- See Also:
-
name
-
parent
-
children
-
-
Constructor Details
-
TestRecursiveEntity
Creates a new instance ofTestRecursiveEntity.- Parameters:
parent- the parent entityname- the name of the entity
-
TestRecursiveEntity
protected TestRecursiveEntity()
-
-
Method Details
-
getName
-
getParent
-
getChildren
-
setName
-
setChildren
-